礼物弹窗 礼物标签图片 替换
Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1014 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -9,6 +9,7 @@
|
||||
type="com.yizhuan.erban.ui.gift.dialog.GiftInfoVm" />
|
||||
|
||||
<import type="android.view.View" />
|
||||
|
||||
<import type="android.text.TextUtils" />
|
||||
</data>
|
||||
|
||||
@@ -65,47 +66,50 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_free_count_down"
|
||||
android:text="@{item.countDownText}"
|
||||
android:textSize="8sp"
|
||||
android:textColor="@color/color_white"
|
||||
android:layout_marginEnd="@dimen/dp_6"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:visibility="@{item.isFreeGift ? View.VISIBLE : View.GONE}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:text="00:00:00"/>
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginEnd="@dimen/dp_6"
|
||||
android:text="@{item.countDownText}"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="8sp"
|
||||
android:visibility="@{item.isFreeGift ? View.VISIBLE : View.GONE}"
|
||||
tools:text="00:00:00" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:gravity="center"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_gift_exclusive"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_width="@dimen/dp_24"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_3"
|
||||
android:src="@drawable/icon_gift_exclusive"
|
||||
android:visibility="@{item.isExclusive ? View.VISIBLE : View.GONE}"
|
||||
android:adjustViewBounds="true"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_gift_new"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_width="@dimen/dp_24"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_3"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/icon_gift_new"
|
||||
android:visibility="@{item.isShowNew ? View.VISIBLE : View.GONE}"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_gift_limit_time"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_width="@dimen/dp_24"
|
||||
android:layout_height="wrap_content"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_marginEnd="@dimen/dp_3"
|
||||
android:src="@drawable/icon_gift_limit_time"
|
||||
android:visibility="@{item.isShowLimit ? View.VISIBLE : View.GONE}"
|
||||
@@ -113,8 +117,9 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_gift_effect"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:layout_width="@dimen/dp_24"
|
||||
android:layout_height="wrap_content"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_marginEnd="@dimen/dp_4"
|
||||
android:src="@drawable/icon_gift_effect"
|
||||
android:visibility="@{item.isShowEffect ? View.VISIBLE : View.GONE}"
|
||||
@@ -123,8 +128,8 @@
|
||||
<ImageView
|
||||
android:id="@+id/iv_noble_tag"
|
||||
nomalUrl="@{item.vipIcon}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
android:layout_width="@dimen/dp_24"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_3"
|
||||
android:adjustViewBounds="true"
|
||||
android:visibility="@{TextUtils.isEmpty(item.vipIcon) ? View.GONE : View.VISIBLE}"
|
||||
|