From 3c7a2d39645015bc5c9975c7c7cacf81602695fb Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 3 Apr 2023 17:57:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=A4=BC=E7=89=A9=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/LiveNewWishGiftViewHolder.java | 4 ++- common/src/main/res/layout/item_gitf_wish.xml | 26 ++++++++++++++++-- .../main/res/mipmap-xxhdpi}/icon_diamond.png | Bin 3 files changed, 27 insertions(+), 3 deletions(-) rename {live/src/main/res/mipmap-mdpi => common/src/main/res/mipmap-xxhdpi}/icon_diamond.png (100%) 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 624ec25a1..8fb0ab9b4 100644 --- a/common/src/main/java/com/yunbao/common/views/LiveNewWishGiftViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/LiveNewWishGiftViewHolder.java @@ -17,17 +17,19 @@ import com.yunbao.common.views.weight.ViewClicksAntiShake; */ public class LiveNewWishGiftViewHolder extends RecyclerView.ViewHolder { private ImageView giftImg; - private TextView giftName; + private TextView giftName, price; public LiveNewWishGiftViewHolder(@NonNull View itemView) { super(itemView); giftImg = itemView.findViewById(R.id.gift_img); giftName = itemView.findViewById(R.id.gift_name); + price = itemView.findViewById(R.id.price); } public void setData(GiftListModel model, ViewClicksAntiShake.ViewClicksCallBack callBack) { ImgLoader.display(itemView.getContext(), model.getImg(), giftImg); giftName.setText(model.getName()); + price.setText(model.getPrice()); ViewClicksAntiShake.clicksAntiShake(itemView.findViewById(R.id.wish_gift), callBack); } diff --git a/common/src/main/res/layout/item_gitf_wish.xml b/common/src/main/res/layout/item_gitf_wish.xml index fa6b16746..b3631e799 100644 --- a/common/src/main/res/layout/item_gitf_wish.xml +++ b/common/src/main/res/layout/item_gitf_wish.xml @@ -1,10 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/live/src/main/res/mipmap-mdpi/icon_diamond.png b/common/src/main/res/mipmap-xxhdpi/icon_diamond.png similarity index 100% rename from live/src/main/res/mipmap-mdpi/icon_diamond.png rename to common/src/main/res/mipmap-xxhdpi/icon_diamond.png