pandorapan/live/src/main/res/layout/item_live_gift.xml

121 lines
3.9 KiB
XML
Raw Normal View History

2022-07-18 15:31:45 +08:00
<?xml version="1.0" encoding="utf-8"?>
2022-11-22 14:57:13 +08:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2022-07-18 15:31:45 +08:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2022-11-22 14:57:13 +08:00
android:layout_height="92dp"
android:background="@drawable/bg_live_gift_items"
2022-11-22 14:57:13 +08:00
app:mfl_ratio="1">
2022-07-18 15:31:45 +08:00
<com.yunbao.common.custom.MyRadioButton
android:id="@+id/radioButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_live_gift_item"
android:button="@null"
2022-11-22 14:57:13 +08:00
android:checked="true" />
2022-07-18 15:31:45 +08:00
<com.yunbao.live.custom.GiftMarkView
android:id="@+id/mark"
android:layout_width="match_parent"
android:layout_height="match_parent"
2022-11-22 14:57:13 +08:00
android:layout_marginTop="1dp"
android:layout_marginRight="1dp" />
2022-07-18 15:31:45 +08:00
<RelativeLayout
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp">
2022-07-18 15:31:45 +08:00
<ImageView
android:id="@+id/icon"
android:layout_width="40dp"
android:layout_height="40dp"
2022-11-22 14:57:13 +08:00
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
2022-07-18 15:31:45 +08:00
2022-11-22 14:57:13 +08:00
<TextView
android:id="@+id/expire"
2022-07-18 15:31:45 +08:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerVertical="true"
android:layout_marginBottom="2dp"
2022-11-22 14:57:13 +08:00
android:background="#D996cff0"
android:gravity="center"
android:textColor="@color/color_white"
android:textSize="8sp"
android:visibility="gone" />
2022-07-18 15:31:45 +08:00
</RelativeLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:layout_marginBottom="8dp"
2022-11-22 14:57:13 +08:00
android:gravity="center"
2022-07-18 15:31:45 +08:00
android:orientation="horizontal">
2022-11-22 14:57:13 +08:00
<ImageView
android:id="@+id/pay_ico"
2022-07-18 15:31:45 +08:00
android:layout_width="10dp"
2023-07-12 15:32:44 +08:00
android:layout_height="10dp"
android:layout_marginEnd="5dp" />
2022-07-18 15:31:45 +08:00
<TextView
android:id="@+id/price"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-07-12 15:32:44 +08:00
2023-07-10 16:36:48 +08:00
android:gravity="center"
2022-11-22 14:57:13 +08:00
android:textColor="@color/gray3"
android:textSize="11sp" />
2022-07-18 15:31:45 +08:00
</LinearLayout>
<TextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-11-22 14:57:13 +08:00
android:layout_gravity="bottom"
2022-07-18 15:31:45 +08:00
android:layout_marginBottom="23dp"
android:gravity="center"
android:textColor="@color/white"
2022-11-22 14:57:13 +08:00
android:textSize="12sp" />
2022-07-18 15:31:45 +08:00
<TextView
android:id="@+id/tvRedpoint"
android:layout_width="wrap_content"
android:layout_height="14dp"
2022-11-22 14:57:13 +08:00
android:layout_gravity="right"
2022-07-18 15:31:45 +08:00
android:layout_marginRight="10dp"
android:background="@drawable/bg_red_point"
android:gravity="center"
android:includeFontPadding="false"
android:minWidth="14dp"
android:paddingLeft="3dp"
android:paddingRight="3dp"
android:textColor="@color/white"
2022-11-22 14:57:13 +08:00
android:textSize="10sp"
android:visibility="gone" />
2022-10-11 16:38:59 +08:00
<LinearLayout
android:id="@+id/gift_loading_layout"
android:layout_width="match_parent"
2022-10-11 16:38:59 +08:00
android:layout_height="match_parent"
android:background="#C0000000"
android:gravity="center"
2022-10-11 16:38:59 +08:00
android:visibility="visible">
<ImageView
android:id="@+id/gift_loading"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="30dp"
2022-10-11 16:38:59 +08:00
android:src="@mipmap/icon_download_gift" />
</LinearLayout>
2022-11-22 14:57:13 +08:00
</FrameLayout>