在线用户列表标签显示优化。
礼物点击弹窗多次闪退修改。
This commit is contained in:
@@ -94,8 +94,6 @@ public class CirleListAdapter extends BaseQuickAdapter<CircleListBean, BaseViewH
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (diff.containsKey("comment_num")) {
|
if (diff.containsKey("comment_num")) {
|
||||||
helper.setText(R.id.dy_comment, diff.getString("comment_num"));
|
helper.setText(R.id.dy_comment, diff.getString("comment_num"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import androidx.annotation.Nullable;
|
|||||||
import com.blankj.utilcode.util.ToastUtils;
|
import com.blankj.utilcode.util.ToastUtils;
|
||||||
import com.xscm.moduleutil.R;
|
import com.xscm.moduleutil.R;
|
||||||
import com.xscm.moduleutil.base.BaseMvpFragment;
|
import com.xscm.moduleutil.base.BaseMvpFragment;
|
||||||
|
import com.xscm.moduleutil.base.CommonAppContext;
|
||||||
import com.xscm.moduleutil.bean.GiftLabelBean;
|
import com.xscm.moduleutil.bean.GiftLabelBean;
|
||||||
import com.xscm.moduleutil.bean.GiftPackBean;
|
import com.xscm.moduleutil.bean.GiftPackBean;
|
||||||
import com.xscm.moduleutil.bean.GiftPackEvent;
|
import com.xscm.moduleutil.bean.GiftPackEvent;
|
||||||
@@ -152,7 +153,7 @@ public class GiftTwoDetailsFragment extends BaseMvpFragment<RewardGiftPresenter,
|
|||||||
|
|
||||||
// 只需要创建一次Adapter并设置,循环设置没有意义
|
// 只需要创建一次Adapter并设置,循环设置没有意义
|
||||||
if (pageCount > 0) {
|
if (pageCount > 0) {
|
||||||
roomAdapter = new GiftRoomAdapter(getActivity(), data, 0, "0");
|
roomAdapter = new GiftRoomAdapter(CommonAppContext.getInstance(), data, 0, "0");
|
||||||
mBinding.rvGift.setAdapter(roomAdapter);
|
mBinding.rvGift.setAdapter(roomAdapter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import android.graphics.drawable.BitmapDrawable;
|
|||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
@@ -178,11 +179,7 @@ public class ImageUtils {
|
|||||||
Logger.e("Resource ID is 0 or invalid");
|
Logger.e("Resource ID is 0 or invalid");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static void loadSetErrorImg(String path, ImageView mImageView,int errorRes) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void loadHeadCC(String path, ImageView mImageView) {
|
|
||||||
if (mImageView == null) {
|
if (mImageView == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -194,10 +191,63 @@ public class ImageUtils {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Glide.with(mImageView).load(path).error(R.mipmap.default_avatar).placeholder(R.mipmap.default_avatar).centerCrop().diskCacheStrategy(DiskCacheStrategy.ALL).into(mImageView);
|
Glide.with(mImageView).load(path).error(errorRes).placeholder(errorRes).centerCrop().diskCacheStrategy(DiskCacheStrategy.ALL).into(mImageView);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static void loadHeadCC(String path, ImageView mImageView) {
|
||||||
|
if (mImageView == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Context context = mImageView.getContext();
|
||||||
|
if (context instanceof android.app.Activity) {
|
||||||
|
android.app.Activity activity = (android.app.Activity) context;
|
||||||
|
if (activity.isFinishing() || (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && activity.isDestroyed())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Glide.with(mImageView).load(path).error(R.mipmap.default_avatar).placeholder(R.mipmap.default_avatar).centerCrop().diskCacheStrategy(DiskCacheStrategy.ALL).into(mImageView);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void loadHeadCC(String path, ImageView mImageView, LinearLayout.LayoutParams params) {
|
||||||
|
if (mImageView == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Context context = mImageView.getContext();
|
||||||
|
if (context instanceof android.app.Activity) {
|
||||||
|
android.app.Activity activity = (android.app.Activity) context;
|
||||||
|
if (activity.isFinishing() || (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && activity.isDestroyed())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Glide.with(mImageView).asBitmap().load(path).error(R.mipmap.default_avatar).placeholder(R.mipmap.default_avatar)
|
||||||
|
.diskCacheStrategy(DiskCacheStrategy.ALL)
|
||||||
|
// 添加加载监听
|
||||||
|
.listener(new RequestListener<Bitmap>() {
|
||||||
|
@Override
|
||||||
|
public boolean onLoadFailed(@Nullable GlideException e, Object model, Target<Bitmap> target, boolean isFirstResource) {
|
||||||
|
// 加载失败(显示默认图),可处理异常
|
||||||
|
Log.e("Glide", "图片加载失败", e);
|
||||||
|
return false; // 返回 false,Glide 会继续执行默认的错误处理(显示 error 图)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onResourceReady(Bitmap resource, Object model, Target<Bitmap> target, DataSource dataSource, boolean isFirstResource) {
|
||||||
|
// 加载成功!resource 就是最终的 Bitmap 对象
|
||||||
|
int imageWidth = resource.getWidth(); // 图片原始宽度
|
||||||
|
int imageHeight = resource.getHeight(); // 图片原始高度
|
||||||
|
params.width = (int)(imageWidth * 1.3);
|
||||||
|
// 这里可以使用宽高(如打印、适配布局等)
|
||||||
|
Log.d("GlideImageSize", "宽度:" + imageWidth + ",高度:" + imageHeight);
|
||||||
|
return false; // 返回 false,Glide 会继续执行默认的图片设置(显示到 mImageView)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.into(mImageView);
|
||||||
|
}
|
||||||
|
|
||||||
public static void loadCompressImg(String path, ImageView mImageView, int width, int height) {
|
public static void loadCompressImg(String path, ImageView mImageView, int width, int height) {
|
||||||
Glide.with(mImageView)
|
Glide.with(mImageView)
|
||||||
.load(path)
|
.load(path)
|
||||||
|
|||||||
@@ -142,15 +142,6 @@ public class DynamicListActivity extends BaseMvpActivity<CirclePresenter, Activi
|
|||||||
public void getCircleList(List<CircleListBean> list) {
|
public void getCircleList(List<CircleListBean> list) {
|
||||||
if (list == null || list.isEmpty())
|
if (list == null || list.isEmpty())
|
||||||
return;
|
return;
|
||||||
// if (page == 1){
|
|
||||||
// circleList.clear();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// List<CircleListBean> oldList = new ArrayList<>(cirleListAdapter.getData());
|
|
||||||
// circleList.addAll(list);
|
|
||||||
//
|
|
||||||
// DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(new CircleListDiffCallback(oldList, circleList), false);
|
|
||||||
// cirleListAdapter.setNewDiffData(diffResult,circleList);
|
|
||||||
circleList.addAll(list);
|
circleList.addAll(list);
|
||||||
cirleListAdapter.setNewData(circleList);
|
cirleListAdapter.setNewData(circleList);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -179,7 +179,6 @@ import java.nio.charset.StandardCharsets
|
|||||||
import java.util.Arrays
|
import java.util.Arrays
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
import java.util.stream.Collectors
|
import java.util.stream.Collectors
|
||||||
import kotlin.math.E
|
|
||||||
|
|
||||||
@Route(path = ARouteConstants.ROOM_DETAILS)
|
@Route(path = ARouteConstants.ROOM_DETAILS)
|
||||||
class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||||
@@ -1601,11 +1600,11 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
|||||||
private fun handleMsgType1013(messageEvent: RoomMessageEvent, text: T?) {
|
private fun handleMsgType1013(messageEvent: RoomMessageEvent, text: T?) {
|
||||||
if (text == null || mRoomUserBean == null) return
|
if (text == null || mRoomUserBean == null) return
|
||||||
|
|
||||||
val userId2 = SpUtil.getUserId()
|
val userId = SpUtil.getUserId()
|
||||||
|
|
||||||
if (text.action == 1 && mRoomUserBean!!.user_id == userId2 && mRoomUserBean!!.pit_number == 9) {
|
if (text.action == 1 && mRoomUserBean!!.user_id == userId && mRoomUserBean!!.pit_number == 9) {
|
||||||
queren(text.fromUserInfo.nickname)
|
queren(text.fromUserInfo.nickname)
|
||||||
} else if (text.action == 4 && text.fromUserInfo.user_id == userId2) {
|
} else if (text.action == 4 && text.fromUserInfo.user_id == userId) {
|
||||||
queren1(text.fromUserInfo.nickname)
|
queren1(text.fromUserInfo.nickname)
|
||||||
} else {
|
} else {
|
||||||
roomFragment?.handleRoomMessage(messageEvent)
|
roomFragment?.handleRoomMessage(messageEvent)
|
||||||
@@ -1681,18 +1680,20 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
|||||||
switchMic(2)
|
switchMic(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
val typeId = mRoomInfoResp!!.room_info.type_id
|
val typeId = RoomType.fromTypeId(mRoomInfoResp?.room_info?.type_id)
|
||||||
if ("2" == typeId) {
|
|
||||||
|
when (typeId) {
|
||||||
|
RoomType.AUCTION -> {
|
||||||
if ("9" == pitNumber) {
|
if ("9" == pitNumber) {
|
||||||
mRoomInfoResp!!.room_info.pit_list[pitNumber.toInt() - 1] =
|
mRoomInfoResp!!.room_info.pit_list[0] = getPitBean(messageEvent,1)
|
||||||
getPitBean(messageEvent, 1)
|
|
||||||
if (mRoomInfoResp!!.user_info != null) {
|
if (mRoomInfoResp!!.user_info != null) {
|
||||||
mRoomInfoResp!!.user_info.pit_number = pitNumber.toInt()
|
mRoomInfoResp!!.user_info.pit_number = pitNumber.toInt()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
roomFragment!!.upRoomInfoData(mRoomInfoResp)
|
roomFragment!!.upRoomInfoData(mRoomInfoResp)
|
||||||
roomFragment!!.handleRoomMessage(messageEvent)
|
roomFragment!!.handleRoomMessage(messageEvent)
|
||||||
} else if ("3" == typeId || "4" == typeId || "1" == typeId || "8" == typeId) {
|
}
|
||||||
|
RoomType.DATING -> {
|
||||||
val labelId = mRoomInfoResp!!.room_info.label_id
|
val labelId = mRoomInfoResp!!.room_info.label_id
|
||||||
if ("2" == labelId) {
|
if ("2" == labelId) {
|
||||||
roomFragment!!.handleRoomMessage(messageEvent)
|
roomFragment!!.handleRoomMessage(messageEvent)
|
||||||
@@ -1702,16 +1703,20 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
|||||||
roomFragment!!.upRoomInfoData(mRoomInfoResp)
|
roomFragment!!.upRoomInfoData(mRoomInfoResp)
|
||||||
roomFragment!!.handleRoomMessage(messageEvent)
|
roomFragment!!.handleRoomMessage(messageEvent)
|
||||||
}
|
}
|
||||||
} else if ("7" == typeId) {
|
}
|
||||||
|
RoomType.MUTUAL_ENTERTAINMENT -> {
|
||||||
mBinding!!.rlMore.visibility = View.GONE
|
mBinding!!.rlMore.visibility = View.GONE
|
||||||
mBinding!!.rlMisc.visibility = View.GONE
|
mBinding!!.rlMisc.visibility = View.GONE
|
||||||
|
|
||||||
roomFragment!!.handleRoomMessage(messageEvent)
|
roomFragment!!.handleRoomMessage(messageEvent)
|
||||||
} else {
|
}
|
||||||
|
else ->{
|
||||||
roomFragment!!.updateSeatViewExchangedWithPitArray(mRoomInfoResp)
|
roomFragment!!.updateSeatViewExchangedWithPitArray(mRoomInfoResp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private fun handleMsgType1004(messageEvent: RoomMessageEvent, text: T?) {
|
private fun handleMsgType1004(messageEvent: RoomMessageEvent, text: T?) {
|
||||||
if (text == null || mRoomInfoResp == null || mRoomInfoResp!!.room_info == null) return
|
if (text == null || mRoomInfoResp == null || mRoomInfoResp!!.room_info == null) return
|
||||||
|
|
||||||
|
|||||||
@@ -106,20 +106,22 @@ public class RoomFragment extends BaseMvpFragment<RoomPresenter, FragmentRoomBin
|
|||||||
String typeId = mRoomInfoResp.getRoom_info().getType_id();
|
String typeId = mRoomInfoResp.getRoom_info().getType_id();
|
||||||
String labelId = mRoomInfoResp.getRoom_info().getLabel_id();
|
String labelId = mRoomInfoResp.getRoom_info().getLabel_id();
|
||||||
CommonAppContext.getInstance().lable_id = typeId;
|
CommonAppContext.getInstance().lable_id = typeId;
|
||||||
if ("7".equals(typeId)) {
|
|
||||||
qxRoomSeatViewType = QXRoomSeatViewType.FRIEND;
|
RoomType roomType = RoomType.Companion.fromTypeId(typeId);
|
||||||
} else if ("2".equals(typeId)) {
|
|
||||||
|
if (roomType == RoomType.AUCTION){
|
||||||
qxRoomSeatViewType = QXRoomSeatViewType.AUCTION;
|
qxRoomSeatViewType = QXRoomSeatViewType.AUCTION;
|
||||||
} else if ("1".equals(typeId) || "3".equals(typeId) || "4".equals(typeId) || "8".equals(typeId)) {
|
}else if (roomType == RoomType.DATING){
|
||||||
if ("2".equals(labelId)) {
|
if ("2".equals(labelId)) {
|
||||||
qxRoomSeatViewType = QXRoomSeatViewType.KTV;
|
qxRoomSeatViewType = QXRoomSeatViewType.KTV;
|
||||||
} else if ("1".equals(labelId)) {
|
} else if ("1".equals(labelId)) {
|
||||||
qxRoomSeatViewType = QXRoomSeatViewType.NORMAL;
|
qxRoomSeatViewType = QXRoomSeatViewType.NORMAL;
|
||||||
}
|
}
|
||||||
} else if ("6".equals(typeId)) {
|
}else if (roomType == RoomType.MUTUAL_ENTERTAINMENT){
|
||||||
|
qxRoomSeatViewType = QXRoomSeatViewType.FRIEND;
|
||||||
|
}else if (roomType == RoomType.BLACK_ROOM){
|
||||||
qxRoomSeatViewType = QXRoomSeatViewType.CABIN;
|
qxRoomSeatViewType = QXRoomSeatViewType.CABIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -507,16 +509,19 @@ public class RoomFragment extends BaseMvpFragment<RoomPresenter, FragmentRoomBin
|
|||||||
|
|
||||||
public void updateSeatViewExchangedWithPitArray(RoomInfoResp roomInfoResp) {
|
public void updateSeatViewExchangedWithPitArray(RoomInfoResp roomInfoResp) {
|
||||||
mRoomInfoResp = roomInfoResp;
|
mRoomInfoResp = roomInfoResp;
|
||||||
|
setRoomSeatViewType();
|
||||||
loadSubFragment(qxRoomSeatViewType);
|
loadSubFragment(qxRoomSeatViewType);
|
||||||
updateChildFragmentViews();
|
updateChildFragmentViews();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void upRoomInfoData(RoomInfoResp roomInfoResp) {
|
public void upRoomInfoData(RoomInfoResp roomInfoResp) {
|
||||||
this.mRoomInfoResp = roomInfoResp;
|
this.mRoomInfoResp = roomInfoResp;
|
||||||
|
setRoomSeatViewType();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void upRoomInfo(RoomInfoResp roomInfoResp) {
|
public void upRoomInfo(RoomInfoResp roomInfoResp) {
|
||||||
mRoomInfoResp = roomInfoResp;
|
mRoomInfoResp = roomInfoResp;
|
||||||
|
setRoomSeatViewType();
|
||||||
loadSubFragment(qxRoomSeatViewType);
|
loadSubFragment(qxRoomSeatViewType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -622,11 +627,6 @@ public class RoomFragment extends BaseMvpFragment<RoomPresenter, FragmentRoomBin
|
|||||||
wheatFeedingDialogFragment.show(getChildFragmentManager(), "WheatFeedingDialogFragment");
|
wheatFeedingDialogFragment.show(getChildFragmentManager(), "WheatFeedingDialogFragment");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateWheatFeedingDisplayMode(int newDisplayMode) {
|
|
||||||
if (wheatFeedingDialogFragment != null && wheatFeedingDialogFragment.isVisible()) {
|
|
||||||
wheatFeedingDialogFragment.updateDisplayMode(newDisplayMode);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
@@ -636,7 +636,7 @@ public class RoomFragment extends BaseMvpFragment<RoomPresenter, FragmentRoomBin
|
|||||||
@Override
|
@Override
|
||||||
public void roomInfo(RoomInfoResp resp) {
|
public void roomInfo(RoomInfoResp resp) {
|
||||||
mRoomInfoResp = resp;
|
mRoomInfoResp = resp;
|
||||||
|
setRoomSeatViewType();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -95,25 +95,6 @@ public class DailyTasksActivity extends BaseMvpActivity<DailyTasksPresenter, Act
|
|||||||
MvpPre.dailyTasksOpenBox(item.getId());
|
MvpPre.dailyTasksOpenBox(item.getId());
|
||||||
});
|
});
|
||||||
|
|
||||||
// taskDataAdapter = new TaskDataAdapter();
|
|
||||||
// taskDataAdapter.setItemClickLitener(new TaskDataAdapter.ItemClickLitener() {
|
|
||||||
// @Override
|
|
||||||
// public void onItemClick(View view, int position, GiftBoxBean.TaskDataBean.DailyTasksBean item) {
|
|
||||||
// if (view.getId() == R.id.task_type){
|
|
||||||
// MvpPre.dailyTasksOpenBox(item.getTask_id()+"");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// mTaskBoxAdapter.setOnItemChildClickListener((adapter, view, position) -> {
|
|
||||||
// if (view.getId() == R.id.task_type){
|
|
||||||
// TextView tv = (TextView) view;
|
|
||||||
// if (tv.getText().toString().equals("领取金币")){
|
|
||||||
// GiftBoxBean.TaskDataBean taskDataBean = (GiftBoxBean.TaskDataBean) adapter.getItem(position);
|
|
||||||
// MvpPre.dailyTasksOpenBox(taskDataBean.getDaily_tasks().get(position).getTask_id()+"");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -98,15 +98,16 @@ public class RoomOnlineAdapter extends BaseMultiItemQuickAdapter<RoomOnlineBean,
|
|||||||
if (url.contains("http")) {
|
if (url.contains("http")) {
|
||||||
ImageView imageView1 = new ImageView(helper.itemView.getContext());
|
ImageView imageView1 = new ImageView(helper.itemView.getContext());
|
||||||
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
|
||||||
helper.itemView.getContext().getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_56),
|
LinearLayout.LayoutParams.WRAP_CONTENT,
|
||||||
helper.itemView.getContext().getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_20)
|
helper.itemView.getContext().getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_20)
|
||||||
);
|
);
|
||||||
|
|
||||||
params.setMargins(0, 0, helper.itemView.getContext().getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_5), 0); // 右边距
|
params.setMargins(0, 0, helper.itemView.getContext().getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_5), 0); // 右边距
|
||||||
imageView1.setLayoutParams(params);
|
imageView1.setLayoutParams(params);
|
||||||
imageView1.setScaleType(ImageView.ScaleType.FIT_START);
|
imageView1.setScaleType(ImageView.ScaleType.FIT_START);
|
||||||
|
|
||||||
// 使用 Glide 加载图片
|
// 使用 Glide 加载图片
|
||||||
ImageUtils.loadHeadCC(url, imageView1);
|
ImageUtils.loadHeadCC(url, imageView1,params);
|
||||||
llContainer.addView(imageView1);
|
llContainer.addView(imageView1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,19 +38,16 @@ public class TaskBoxAdapter extends BaseQuickAdapter<GiftBoxBean.GiftBean, BaseV
|
|||||||
TextView giftTitle = helper.getView(R.id.tv_title);
|
TextView giftTitle = helper.getView(R.id.tv_title);
|
||||||
giftName.setText(item.getName());
|
giftName.setText(item.getName());
|
||||||
giftTitle.setText(item.getTitle());
|
giftTitle.setText(item.getTitle());
|
||||||
ImageUtils.loadHeadCC(item.getIcon(), helper.getView(R.id.task_box));
|
|
||||||
if (position == 0) {
|
if (position == 0) {
|
||||||
itemView.setBackgroundColor(mContext.getResources().getColor(com.xscm.moduleutil.R.color.color_FCE4ED)); // 红色
|
itemView.setBackgroundColor(mContext.getResources().getColor(com.xscm.moduleutil.R.color.color_FCE4ED)); // 红色
|
||||||
giftName.setTextColor(mContext.getResources().getColor(com.xscm.moduleutil.R.color.color_E24171));
|
giftName.setTextColor(mContext.getResources().getColor(com.xscm.moduleutil.R.color.color_E24171));
|
||||||
setSpannableText(giftTitle, "最高可获得%d金币", Integer.parseInt(item.getHighest_gain()),com.xscm.moduleutil.R.color.color_E24171);
|
setSpannableText(giftTitle, "最高可获得%d金币", Integer.parseInt(item.getHighest_gain()),com.xscm.moduleutil.R.color.color_E24171);
|
||||||
// helper.setImageDrawable(R.id.task_box, mContext.getResources().getDrawable(com.qxcm.moduleutil.R.mipmap.task_cj));
|
ImageUtils.loadSetErrorImg(item.getIcon(), helper.getView(R.id.task_box), com.xscm.moduleutil.R.mipmap.task_cj);
|
||||||
|
|
||||||
|
|
||||||
} else if (position == 1) {
|
} else if (position == 1) {
|
||||||
|
ImageUtils.loadSetErrorImg(item.getIcon(), helper.getView(R.id.task_box), com.xscm.moduleutil.R.mipmap.task_gj);
|
||||||
itemView.setBackgroundColor(mContext.getResources().getColor(com.xscm.moduleutil.R.color.color_FDE8AE)); // 黄色
|
itemView.setBackgroundColor(mContext.getResources().getColor(com.xscm.moduleutil.R.color.color_FDE8AE)); // 黄色
|
||||||
giftName.setTextColor(mContext.getResources().getColor(com.xscm.moduleutil.R.color.color_F35F07));
|
giftName.setTextColor(mContext.getResources().getColor(com.xscm.moduleutil.R.color.color_F35F07));
|
||||||
setSpannableText(giftTitle, "最高可获得%d金币", Integer.parseInt(item.getHighest_gain()),com.xscm.moduleutil.R.color.color_F35F07);
|
setSpannableText(giftTitle, "最高可获得%d金币", Integer.parseInt(item.getHighest_gain()),com.xscm.moduleutil.R.color.color_F35F07);
|
||||||
// helper.setImageDrawable(R.id.task_box, mContext.getResources().getDrawable(com.qxcm.moduleutil.R.mipmap.task_gj));
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// 其他 item 恢复默认背景(可选)
|
// 其他 item 恢复默认背景(可选)
|
||||||
|
|||||||
@@ -19,18 +19,18 @@
|
|||||||
|
|
||||||
<com.xscm.moduleutil.widget.DropHourlView
|
<com.xscm.moduleutil.widget.DropHourlView
|
||||||
android:id="@+id/cl_xsb"
|
android:id="@+id/cl_xsb"
|
||||||
android:layout_width="@dimen/dp_68"
|
android:layout_width="@dimen/dp_72"
|
||||||
android:layout_height="@dimen/dp_35"
|
android:layout_height="@dimen/dp_30"
|
||||||
android:layout_marginTop="@dimen/dp_60"
|
android:layout_marginTop="@dimen/dp_60"
|
||||||
android:layout_marginEnd="@dimen/dp_10"
|
android:layout_marginEnd="@dimen/dp_10"
|
||||||
android:layout_marginBottom="@dimen/dp_100"
|
android:layout_marginBottom="@dimen/dp_100"
|
||||||
android:gravity="right"
|
|
||||||
android:background="@mipmap/room_xsb"
|
android:background="@mipmap/room_xsb"
|
||||||
|
android:elevation="4dp"
|
||||||
|
android:gravity="right"
|
||||||
|
android:visibility="invisible"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible">
|
||||||
android:elevation="4dp"
|
|
||||||
android:visibility="invisible">
|
|
||||||
<!-- android:background="@mipmap/room_xsb"-->
|
<!-- android:background="@mipmap/room_xsb"-->
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -39,10 +39,10 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="right|center"
|
android:layout_gravity="right|center"
|
||||||
android:gravity="center|right"
|
android:gravity="center|right"
|
||||||
android:padding="@dimen/dp_8"
|
android:paddingEnd="@dimen/dp_4"
|
||||||
android:text="小时榜"
|
android:text="小时榜"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="@color/white"
|
||||||
android:textSize="13sp"/>
|
android:textSize="13sp" />
|
||||||
|
|
||||||
|
|
||||||
</com.xscm.moduleutil.widget.DropHourlView>
|
</com.xscm.moduleutil.widget.DropHourlView>
|
||||||
@@ -53,20 +53,20 @@
|
|||||||
android:layout_width="@dimen/dp_65"
|
android:layout_width="@dimen/dp_65"
|
||||||
android:layout_height="@dimen/dp_65"
|
android:layout_height="@dimen/dp_65"
|
||||||
android:layout_marginTop="@dimen/dp_160"
|
android:layout_marginTop="@dimen/dp_160"
|
||||||
|
android:elevation="4dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
android:visibility="invisible"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible">
|
||||||
android:elevation="4dp"
|
|
||||||
android:visibility="invisible">
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/red_bj"
|
android:id="@+id/red_bj"
|
||||||
android:layout_width="@dimen/dp_58"
|
android:layout_width="@dimen/dp_58"
|
||||||
android:layout_height="@dimen/dp_58"
|
android:layout_height="@dimen/dp_58"
|
||||||
android:src="@mipmap/red_bj"
|
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:scaleType="fitCenter"/>
|
android:scaleType="fitCenter"
|
||||||
|
android:src="@mipmap/red_bj" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/red_num"
|
android:id="@+id/red_num"
|
||||||
@@ -75,11 +75,11 @@
|
|||||||
android:layout_gravity="top|end"
|
android:layout_gravity="top|end"
|
||||||
android:layout_marginStart="-20dp"
|
android:layout_marginStart="-20dp"
|
||||||
android:layout_marginTop="@dimen/dp_5"
|
android:layout_marginTop="@dimen/dp_5"
|
||||||
tools:text="x0"
|
|
||||||
android:textColor="#FFFEB2"
|
android:textColor="#FFFEB2"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
tools:visibility="visible"/>
|
tools:text="x0"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
|
|
||||||
</com.xscm.moduleutil.widget.DropRedView>
|
</com.xscm.moduleutil.widget.DropRedView>
|
||||||
@@ -89,20 +89,20 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="@dimen/dp_10"
|
android:layout_marginEnd="@dimen/dp_10"
|
||||||
|
android:elevation="4dp"
|
||||||
android:gravity="right"
|
android:gravity="right"
|
||||||
|
android:visibility="invisible"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible">
|
||||||
android:elevation="4dp"
|
|
||||||
android:visibility="invisible">
|
|
||||||
<!-- android:background="@mipmap/room_xsb"-->
|
<!-- android:background="@mipmap/room_xsb"-->
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/im_day_task"
|
android:id="@+id/im_day_task"
|
||||||
android:layout_width="@dimen/dp_80"
|
android:layout_width="@dimen/dp_80"
|
||||||
android:layout_height="@dimen/dp_60"
|
android:layout_height="@dimen/dp_60"
|
||||||
android:src="@mipmap/day_task"
|
android:scaleType="fitCenter"
|
||||||
android:scaleType="fitCenter"/>
|
android:src="@mipmap/day_task" />
|
||||||
|
|
||||||
|
|
||||||
</com.xscm.moduleutil.widget.DropDayTaskView>
|
</com.xscm.moduleutil.widget.DropDayTaskView>
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_bg_mask"
|
android:id="@+id/iv_bg_mask"
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
<include
|
<include
|
||||||
@@ -141,8 +141,7 @@
|
|||||||
android:clipChildren="false"
|
android:clipChildren="false"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:elevation="2dp"
|
android:elevation="2dp"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
@@ -167,7 +166,7 @@
|
|||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/ease_container"
|
android:id="@+id/ease_container"
|
||||||
@@ -183,7 +182,7 @@
|
|||||||
android:id="@+id/svga_ride"
|
android:id="@+id/svga_ride"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:minHeight="@dimen/dp_80"/>
|
android:minHeight="@dimen/dp_80" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@@ -193,7 +192,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"/>
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/ll_bottom"
|
android:id="@+id/ll_bottom"
|
||||||
@@ -225,7 +224,7 @@
|
|||||||
android:layout_width="@dimen/dp_24"
|
android:layout_width="@dimen/dp_24"
|
||||||
android:layout_height="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
||||||
android:layout_marginLeft="@dimen/dp_5"
|
android:layout_marginLeft="@dimen/dp_5"
|
||||||
android:src="@mipmap/xiaox_bq"/>
|
android:src="@mipmap/xiaox_bq" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/iv_chat"
|
android:id="@+id/iv_chat"
|
||||||
@@ -235,13 +234,13 @@
|
|||||||
android:layout_marginRight="@dimen/dp_10"
|
android:layout_marginRight="@dimen/dp_10"
|
||||||
android:text="说点什么"
|
android:text="说点什么"
|
||||||
android:textColor="#80ffffff"
|
android:textColor="#80ffffff"
|
||||||
android:textSize="@dimen/sp_13"/>
|
android:textSize="@dimen/sp_13" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_weight="0.2"/>
|
android:layout_weight="0.2" />
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/rl_voive"
|
android:id="@+id/rl_voive"
|
||||||
@@ -255,7 +254,7 @@
|
|||||||
android:layout_width="@dimen/dp_24"
|
android:layout_width="@dimen/dp_24"
|
||||||
android:layout_height="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:src="@mipmap/room_voice_kg"/>
|
android:src="@mipmap/room_voice_kg" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -273,7 +272,7 @@
|
|||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:src="@mipmap/room_microphone_off"
|
android:src="@mipmap/room_microphone_off"
|
||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="visible" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -289,7 +288,7 @@
|
|||||||
android:layout_height="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:src="@mipmap/room_message"
|
android:src="@mipmap/room_message"
|
||||||
android:visibility="visible"/>
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- <ImageView-->
|
<!-- <ImageView-->
|
||||||
<!-- android:id="@+id/iv_message_dot"-->
|
<!-- android:id="@+id/iv_message_dot"-->
|
||||||
@@ -315,7 +314,7 @@
|
|||||||
android:textSize="@dimen/sp_8"
|
android:textSize="@dimen/sp_8"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:text="99+"
|
tools:text="99+"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="visible" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -330,7 +329,7 @@
|
|||||||
android:layout_width="@dimen/dp_24"
|
android:layout_width="@dimen/dp_24"
|
||||||
android:layout_height="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:src="@mipmap/room_pk"/>
|
android:src="@mipmap/room_pk" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -345,7 +344,7 @@
|
|||||||
android:layout_width="@dimen/dp_24"
|
android:layout_width="@dimen/dp_24"
|
||||||
android:layout_height="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:src="@mipmap/room_mis"/>
|
android:src="@mipmap/room_mis" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -360,7 +359,7 @@
|
|||||||
android:layout_width="@dimen/dp_24"
|
android:layout_width="@dimen/dp_24"
|
||||||
android:layout_height="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:src="@mipmap/room_gift"/>
|
android:src="@mipmap/room_gift" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -374,7 +373,7 @@
|
|||||||
android:layout_width="@dimen/dp_24"
|
android:layout_width="@dimen/dp_24"
|
||||||
android:layout_height="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:src="@mipmap/room_sett"/>
|
android:src="@mipmap/room_sett" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -385,11 +384,11 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
android:visibility="gone"
|
||||||
app:layout_constraintBottom_toTopOf="@id/ll_bottom"
|
app:layout_constraintBottom_toTopOf="@id/ll_bottom"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
android:visibility="gone"/>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- </ScrollView>-->
|
<!-- </ScrollView>-->
|
||||||
@@ -401,7 +400,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
<!--礼物连送图标-->
|
<!--礼物连送图标-->
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/gift_show_layout"
|
android:id="@+id/gift_show_layout"
|
||||||
@@ -424,7 +423,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<com.xscm.moduleutil.widget.CircularProgressView
|
<com.xscm.moduleutil.widget.CircularProgressView
|
||||||
android:id="@+id/gift_show_progress"
|
android:id="@+id/gift_show_progress"
|
||||||
@@ -437,7 +436,7 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:progColor="#888888"
|
app:progColor="#888888"
|
||||||
app:progWidth="3dp"
|
app:progWidth="3dp"
|
||||||
app:progress="0"/>
|
app:progress="0" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
||||||
@@ -460,7 +459,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_first_charge"
|
android:id="@+id/tv_first_charge"
|
||||||
@@ -473,7 +472,7 @@
|
|||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/iv_first_charge"
|
app:layout_constraintTop_toBottomOf="@+id/iv_first_charge"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_first"
|
android:id="@+id/tv_first"
|
||||||
@@ -486,7 +485,7 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_first_charge"
|
app:layout_constraintTop_toBottomOf="@+id/tv_first_charge"
|
||||||
tools:text="0人排队"/>
|
tools:text="0人排队" />
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -502,7 +501,7 @@
|
|||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/iv_wheat_feeding"
|
app:layout_constraintBottom_toTopOf="@+id/iv_wheat_feeding"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_wheat_feeding"
|
android:id="@+id/iv_wheat_feeding"
|
||||||
@@ -514,7 +513,7 @@
|
|||||||
android:translationZ="@dimen/dp_2"
|
android:translationZ="@dimen/dp_2"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="visible" />
|
||||||
<!--https://tmd.xscmmidi.site/data/avatar/head_pic.png-->
|
<!--https://tmd.xscmmidi.site/data/avatar/head_pic.png-->
|
||||||
|
|
||||||
|
|
||||||
@@ -538,7 +537,7 @@
|
|||||||
android:layout_height="@dimen/dp_80"
|
android:layout_height="@dimen/dp_80"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:src="@mipmap/xlh_rk_bj"
|
android:src="@mipmap/xlh_rk_bj"
|
||||||
app:riv_oval="true"/>
|
app:riv_oval="true" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_djs"
|
android:id="@+id/tv_djs"
|
||||||
@@ -548,13 +547,12 @@
|
|||||||
android:textColor="#FFEBBD"
|
android:textColor="#FFEBBD"
|
||||||
android:textSize="@dimen/sp_12"
|
android:textSize="@dimen/sp_12"
|
||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
tools:text="倒计时:12:12"/>
|
tools:text="倒计时:12:12" />
|
||||||
|
|
||||||
|
|
||||||
</com.xscm.moduleutil.widget.DropViewRoom>
|
</com.xscm.moduleutil.widget.DropViewRoom>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<com.xscm.moduleutil.widget.floatingView.Floa
|
<com.xscm.moduleutil.widget.floatingView.Floa
|
||||||
android:id="@+id/flaoat_zuoji"
|
android:id="@+id/flaoat_zuoji"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@@ -590,7 +588,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
@@ -602,19 +600,19 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:riv_oval="true"/>
|
app:riv_oval="true" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/headName"
|
android:id="@+id/headName"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/dp_18"
|
android:layout_height="@dimen/dp_18"
|
||||||
android:layout_marginStart="@dimen/dp_4"
|
android:layout_marginStart="@dimen/dp_4"
|
||||||
tools:text="名称"
|
|
||||||
android:textColor="#FFFF0B"
|
android:textColor="#FFFF0B"
|
||||||
android:textStyle="bold"
|
|
||||||
android:textSize="@dimen/sp_12"
|
android:textSize="@dimen/sp_12"
|
||||||
|
android:textStyle="bold"
|
||||||
app:layout_constraintStart_toEndOf="@+id/head_avate"
|
app:layout_constraintStart_toEndOf="@+id/head_avate"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
tools:text="名称" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/head_cone"
|
android:id="@+id/head_cone"
|
||||||
@@ -622,13 +620,13 @@
|
|||||||
android:layout_height="@dimen/dp_18"
|
android:layout_height="@dimen/dp_18"
|
||||||
android:layout_marginStart="@dimen/dp_4"
|
android:layout_marginStart="@dimen/dp_4"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
tools:text="内容"
|
|
||||||
android:textColor="@color/color_FFFFF0F0"
|
android:textColor="@color/color_FFFFF0F0"
|
||||||
android:textSize="@dimen/sp_12"
|
android:textSize="@dimen/sp_12"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/head_avate"
|
app:layout_constraintStart_toEndOf="@+id/head_avate"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/headName"/>
|
app:layout_constraintTop_toBottomOf="@+id/headName"
|
||||||
|
tools:text="内容" />
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
@@ -638,7 +636,7 @@
|
|||||||
android:src="@mipmap/tt_q"
|
android:src="@mipmap/tt_q"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/im_yc"
|
app:layout_constraintEnd_toStartOf="@+id/im_yc"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_quan_c"
|
android:id="@+id/iv_quan_c"
|
||||||
@@ -648,7 +646,7 @@
|
|||||||
android:src="@mipmap/tt_c"
|
android:src="@mipmap/tt_c"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/iv_quan_qiang"
|
app:layout_constraintEnd_toStartOf="@+id/iv_quan_qiang"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/im_yc"
|
android:id="@+id/im_yc"
|
||||||
@@ -657,7 +655,7 @@
|
|||||||
android:src="@mipmap/tt_yc"
|
android:src="@mipmap/tt_yc"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -671,7 +669,7 @@
|
|||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@@ -683,7 +681,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@android:color/black"
|
android:background="@android:color/black"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_exit_fullscreen"
|
android:id="@+id/iv_exit_fullscreen"
|
||||||
@@ -697,25 +695,25 @@
|
|||||||
android:src="@mipmap/quan"
|
android:src="@mipmap/quan"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
<com.xscm.moduleutil.widget.floatingView.Floa
|
<com.xscm.moduleutil.widget.floatingView.Floa
|
||||||
android:id="@+id/flaoat"
|
android:id="@+id/flaoat"
|
||||||
android:layout_width="@dimen/dp_240"
|
android:layout_width="@dimen/dp_240"
|
||||||
android:layout_height="@dimen/dp_135"
|
android:layout_height="@dimen/dp_135"
|
||||||
|
android:translationZ="1000dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
android:translationZ="1000dp"
|
|
||||||
tools:visibility="visible">
|
tools:visibility="visible">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/fl_screenshare"
|
android:id="@+id/fl_screenshare"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_quan"
|
android:id="@+id/iv_quan"
|
||||||
@@ -725,7 +723,7 @@
|
|||||||
android:layout_marginEnd="@dimen/dp_16"
|
android:layout_marginEnd="@dimen/dp_16"
|
||||||
android:layout_marginBottom="@dimen/dp_5"
|
android:layout_marginBottom="@dimen/dp_5"
|
||||||
android:src="@mipmap/quan"
|
android:src="@mipmap/quan"
|
||||||
android:translationZ="10dp"/>
|
android:translationZ="10dp" />
|
||||||
<!-- 自定义内容 -->
|
<!-- 自定义内容 -->
|
||||||
</com.xscm.moduleutil.widget.floatingView.Floa>
|
</com.xscm.moduleutil.widget.floatingView.Floa>
|
||||||
|
|
||||||
@@ -733,9 +731,8 @@
|
|||||||
android:id="@+id/gift_container"
|
android:id="@+id/gift_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/room_top"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
android:translationZ="9999dp"
|
android:translationZ="9999dp"
|
||||||
/>
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/room_top" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</layout>
|
</layout>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
android:id="@+id/item"
|
android:id="@+id/item"
|
||||||
android:layout_height="@dimen/dp_50"
|
android:layout_height="@dimen/dp_50"
|
||||||
android:layout_marginStart="@dimen/dp_16"
|
android:layout_marginStart="@dimen/dp_16"
|
||||||
android:layout_marginTop="@dimen/dp_5"
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
android:layout_marginEnd="@dimen/dp_16">
|
android:layout_marginEnd="@dimen/dp_16">
|
||||||
|
|
||||||
<com.xscm.moduleutil.widget.GifAvatarOvalView
|
<com.xscm.moduleutil.widget.GifAvatarOvalView
|
||||||
|
|||||||
Reference in New Issue
Block a user