pdlivexp/live/src/main/res/layout/dialog_live_buy_guard.xml
2024-04-03 16:05:53 +08:00

206 lines
7.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="509dp">
<ImageView
android:id="@+id/bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@mipmap/dialog_live_buy_guard_bg" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.stx.xhb.androidx.XBanner
android:id="@+id/buy_guard_banner"
android:layout_width="match_parent"
android:layout_height="220dp"
android:layout_marginTop="20dp"
app:isAutoPlay="false"
app:isClipChildrenMode="true"
app:isClipChildrenModeLessThree="true"
app:isHandLoop="true"
app:clipChildrenLeftMargin="20dp"
app:clipChildrenRightMargin="20dp"
app:isShowIndicatorOnlyOne="true"
app:isShowNumberIndicator="false"
app:showIndicatorInCenter="false" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="21dp"
android:text="@string/guardian_privilege"
android:textColor="#FAE3B9"
android:textSize="16sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/guard_rule"
android:layout_width="19dp"
android:layout_height="19dp"
android:layout_gravity="center_vertical|end"
android:layout_marginEnd="18dp"
android:src="@mipmap/icon_guard_rule" />
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/guard_privilege"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="9dp"
android:layout_marginBottom="73dp"
android:overScrollMode="never"
android:paddingEnd="9dp"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="4"
tools:itemCount="10"
tools:listitem="@layout/view_live_buy_guard_privilege_item" />
</LinearLayout>
<FrameLayout
android:id="@+id/bottom_panel"
android:layout_width="match_parent"
android:layout_height="73dp"
android:layout_gravity="bottom"
android:background="@drawable/bg_star_guard_bottom_panel"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="21dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:id="@+id/discount_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="520000"
android:textColor="#FDECCB"
android:textSize="24sp"
android:textStyle="bold" />
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginStart="6dp"
android:src="@mipmap/icon_diamond2" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/original_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="564000"
android:textColor="@color/white"
android:textSize="14sp" />
</FrameLayout>
<TextView
android:id="@+id/discount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:text="7.1折"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<FrameLayout
android:layout_width="195dp"
android:layout_height="44dp"
android:layout_gravity="center_vertical|end"
android:layout_marginEnd="6dp">
<ImageView
android:id="@+id/btn_guard"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/btn_star_guard" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/guard_month_linear"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.9"
android:gravity="center">
<TextView
android:id="@+id/guard_month"
android:layout_width="wrap_content"
android:layout_marginStart="10dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/one_month"
android:textColor="@color/white"
android:textSize="14sp" />
<ImageView
android:id="@+id/guard_arrow"
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_marginStart="5dp"
android:layout_marginTop="1dp"
android:src="@mipmap/icon_right" />
</LinearLayout>
<TextView
android:id="@+id/open_the_guard"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="@string/open_the_start_guard"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>
</FrameLayout>
</FrameLayout>
</FrameLayout>