From a5fd14cc0e878785ca804a61b2083fa55840a7de Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 3 Apr 2023 18:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=BF=83=E6=84=BF=E5=8D=95?= =?UTF-8?q?=E7=A4=BC=E7=89=A9=E8=B4=B5=E6=97=8F=E5=92=8C=E5=AE=88=E6=8A=A4?= =?UTF-8?q?=E7=9A=84=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/views/LiveNewWishGiftViewHolder.java | 6 ++++++ common/src/main/res/layout/item_gitf_wish.xml | 1 + 2 files changed, 7 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/views/LiveNewWishGiftViewHolder.java b/common/src/main/java/com/yunbao/common/views/LiveNewWishGiftViewHolder.java index 8fb0ab9b4..32f731675 100644 --- a/common/src/main/java/com/yunbao/common/views/LiveNewWishGiftViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/LiveNewWishGiftViewHolder.java @@ -1,5 +1,6 @@ package com.yunbao.common.views; +import android.text.TextUtils; import android.view.View; import android.widget.ImageView; import android.widget.TextView; @@ -31,6 +32,11 @@ public class LiveNewWishGiftViewHolder extends RecyclerView.ViewHolder { giftName.setText(model.getName()); price.setText(model.getPrice()); ViewClicksAntiShake.clicksAntiShake(itemView.findViewById(R.id.wish_gift), callBack); + if (TextUtils.equals(model.getGiftType(), "1")) { + itemView.findViewById(R.id.lin_price).setVisibility(View.VISIBLE); + } else { + itemView.findViewById(R.id.lin_price).setVisibility(View.GONE); + } } public void onSelect(boolean select) { diff --git a/common/src/main/res/layout/item_gitf_wish.xml b/common/src/main/res/layout/item_gitf_wish.xml index b3631e799..bf162df04 100644 --- a/common/src/main/res/layout/item_gitf_wish.xml +++ b/common/src/main/res/layout/item_gitf_wish.xml @@ -22,6 +22,7 @@ android:textSize="12sp" />