358 lines
14 KiB
XML
358 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="350dp"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/close_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="5dp"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/live_gift_download_all"
|
|
android:layout_width="155dp"
|
|
android:layout_height="32dp"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_marginStart="12dp"
|
|
android:background="@drawable/bg_live_gift_download_all"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:layout_width="19dp"
|
|
android:layout_height="19dp"
|
|
android:layout_marginEnd="7dp"
|
|
android:src="@mipmap/icon_small_download"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:text="设置为联系方式礼物"
|
|
android:textSize="10sp"
|
|
android:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/btn_luck_gift_tip"
|
|
android:layout_width="102dp"
|
|
android:layout_height="31dp"
|
|
android:clickable="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginTop="70dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="@drawable/bg_live_vip_blue"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/vipGoldIcon"
|
|
android:layout_width="26dp"
|
|
android:layout_height="26dp"
|
|
android:layout_marginEnd="3.5dp"
|
|
android:scaleType="centerCrop"
|
|
android:src="@mipmap/icon_vip_gold_new" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/vipGoldTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:text="@string/live_gift_buy_gold"
|
|
android:textColor="#F5C600"
|
|
android:textSize="10sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/vipGoldDesc"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:text="@string/live_gift_buy_gold_desc"
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="8sp" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/blind_box"
|
|
android:clickable="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:visibility="invisible">
|
|
|
|
<include
|
|
|
|
layout="@layout/view_blind_box" />
|
|
</FrameLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@mipmap/img_lu_bg">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/gift_tab_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/items"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:layout_weight="1" />
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="23dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginEnd="15dp"
|
|
android:src="@drawable/bg_live_gift_package_line" />
|
|
|
|
<com.yunbao.common.custom.DrawableTextView
|
|
android:id="@+id/btn_gift_package"
|
|
android:layout_width="36dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:drawablePadding="2dp"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/live_wrap"
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="12sp"
|
|
app:dt_left_height="23dp"
|
|
app:dt_left_width="1.3dp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="300dp"
|
|
android:layout_below="@id/gift_tab_layout"
|
|
android:gravity="bottom"
|
|
android:orientation="vertical">
|
|
|
|
<com.yunbao.live.custom.GiftViewPager
|
|
android:id="@+id/viewPager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_weight="1" />
|
|
|
|
<androidx.viewpager.widget.ViewPager
|
|
android:id="@+id/vpWrapList"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="3dp"
|
|
android:layout_weight="1"
|
|
android:visibility="gone" />
|
|
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="66dp"
|
|
android:layout_weight="0">
|
|
|
|
<RadioGroup
|
|
android:id="@+id/radio_group"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="6dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="3.5dp"
|
|
android:gravity="end"
|
|
android:orientation="horizontal" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/radio_group_wrap"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="6dp"
|
|
android:layout_gravity="end"
|
|
android:layout_marginTop="3.5dp"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/btn_send_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="10dp">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/btn_send"
|
|
android:layout_width="60dp"
|
|
android:layout_height="30dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:background="@drawable/bg_live_gift_send_2"
|
|
android:enabled="false"
|
|
android:gravity="center"
|
|
android:text="@string/live_gift_send"
|
|
android:textColor="@color/fg_btn_gift_send"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/btn_choose"
|
|
android:layout_width="60dp"
|
|
android:layout_height="30dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_toLeftOf="@id/btn_send"
|
|
android:background="@drawable/bg_live_gift_choose2"
|
|
android:gravity="center"
|
|
android:paddingRight="13dp"
|
|
android:text="1"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:visibility="invisible" />
|
|
|
|
<ImageView
|
|
android:id="@+id/arrow"
|
|
android:layout_width="13dp"
|
|
android:layout_height="7dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_marginBottom="22dp"
|
|
android:layout_toLeftOf="@id/btn_send"
|
|
android:src="@mipmap/icon_live_gift_2"
|
|
android:visibility="invisible"
|
|
app:tint="@color/global" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:gravity="bottom"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<com.yunbao.common.custom.DrawableTextView
|
|
android:id="@+id/goldCoin"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:drawablePadding="4dp"
|
|
android:gravity="center_vertical"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp"
|
|
app:dt_left_drawable="@mipmap/gold_coin"
|
|
app:dt_left_height="20dp"
|
|
app:dt_left_width="20dp"
|
|
app:dt_right_height="14dp"
|
|
app:dt_right_width="14dp" />
|
|
|
|
<com.yunbao.common.custom.DrawableTextView
|
|
android:id="@+id/coin"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:drawablePadding="4dp"
|
|
android:gravity="center_vertical"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp"
|
|
app:dt_left_drawable="@mipmap/diamond"
|
|
app:dt_left_height="20dp"
|
|
app:dt_left_width="20dp"
|
|
app:dt_right_height="14dp"
|
|
app:dt_right_width="14dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.yunbao.common.custom.DrawableTextView
|
|
android:id="@+id/go_charge"
|
|
android:layout_width="42dp"
|
|
android:layout_height="22dp"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginBottom="3dp"
|
|
android:background="@drawable/bg_live_gift_buy"
|
|
android:drawablePadding="4dp"
|
|
android:gravity="center"
|
|
android:text="@string/charge"
|
|
android:textColor="@color/yellow5"
|
|
android:textSize="12sp"
|
|
app:dt_left_height="20dp"
|
|
app:dt_left_width="20dp"
|
|
app:dt_right_height="14dp"
|
|
app:dt_right_width="14dp" />
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/loading"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginTop="14dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:indeterminateBehavior="repeat"
|
|
android:indeterminateDrawable="@drawable/anim_loading"
|
|
android:indeterminateOnly="true" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/btn_send_lian"
|
|
android:layout_width="70dp"
|
|
android:layout_height="70dp"
|
|
android:layout_alignBottom="@id/group"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="@mipmap/icon_live_gift_lian"
|
|
android:visibility="invisible">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="20dp"
|
|
android:text="@string/live_gift_send_lian"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/lian_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="35dp"
|
|
android:textColor="#fff"
|
|
android:textSize="14sp" />
|
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
</LinearLayout> |