隐藏新人任务

This commit is contained in:
ningwenqiang 2024-10-07 10:13:45 +08:00
parent 2236a90b31
commit 950bcee232
3 changed files with 17 additions and 14 deletions

View File

@ -299,10 +299,9 @@ public class LiveGiftPopup2 extends AbsDialogFragment {
// ImgLoader.display(getContext(), R.mipmap.ic_gift_right_arrow, liveGiftImg);
//设置礼物的信息
RecyclerView.LayoutManager layoutManager = new GridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
GridLayoutManager layoutManager = new GridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
giftRecyclerView.setLayoutManager(layoutManager);
//礼物分类tab
//礼物分类tab
LinearLayoutManager manager = new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false);
giftTitleRecyclerView.setLayoutManager(manager);
@ -363,7 +362,6 @@ public class LiveGiftPopup2 extends AbsDialogFragment {
giftWrapTv.setTextColor(ContextCompat.getColor(mContext, com.yunbao.live.R.color.feea36));
isWrap = true;
giftSendGroup.setVisibility(View.INVISIBLE);
//TODO 切换到包裹取消更爱
GiftCacheUtil.getInstance().addDownloadList(mWrapGiftList);
//礼物过滤掉数量为0的礼物
@ -380,6 +378,8 @@ public class LiveGiftPopup2 extends AbsDialogFragment {
}
if (number == 0) {
iterator.remove();
}else {
bean.setChecked(false);
}
}

View File

@ -5656,15 +5656,16 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
public void setShowTask(String url, boolean isShow) {
newTaskGroup = findViewById(R.id.newTaskGroup);
newTaskBg = findViewById(R.id.newTaskBg);
newTaskBg.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ZhuangBanActivity.forward(mContext, url, true, 1);
}
});
newTaskGroup.setVisibility(isShow ? View.VISIBLE : View.GONE);
//隐藏新手任务
// newTaskGroup = findViewById(R.id.newTaskGroup);
// newTaskBg = findViewById(R.id.newTaskBg);
// newTaskBg.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// ZhuangBanActivity.forward(mContext, url, true, 1);
// }
// });
// newTaskGroup.setVisibility(isShow ? View.VISIBLE : View.GONE);
// anTask = findViewById(R.id.anTask);
// anTask.setOnClickListener(new View.OnClickListener() {

View File

@ -2538,7 +2538,9 @@
android:layout_height="30dp"
android:layout_alignParentBottom="true"
android:layout_marginStart="10dp"
android:visibility="gone" />
android:visibility="gone"
android:layout_marginEnd="70dp"
tools:visibility="visible"/>
</RelativeLayout>
@ -3212,7 +3214,7 @@
android:scrollHorizontally="true"
android:singleLine="true"
tools:text="主播創建了【游戲名】房間"
android:textColor="@color/black1"
android:textColor="@color/black1"
android:textSize="12dp" />
<TextView