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" />