心愿单增加礼物金额

This commit is contained in:
18401019693 2023-04-03 17:57:47 +08:00
parent 325d7254f0
commit 3c7a2d3964
3 changed files with 27 additions and 3 deletions

View File

@ -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);
}

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/wish_gift"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/wish_gift"
android:gravity="center"
android:background="@drawable/background_wilsh_gitf"
android:gravity="center"
android:orientation="vertical">
<ImageView
@ -21,4 +21,26 @@
android:textColor="@color/white"
android:textSize="12sp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:gravity="center_vertical">
<ImageView
android:layout_width="13dp"
android:layout_height="13dp"
android:background="@mipmap/icon_diamond" />
<TextView
android:id="@+id/price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginStart="3dp"
android:text="2131313"
android:textColor="@color/white"
android:textSize="10sp" />
</LinearLayout>
</LinearLayout>

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB