<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/white"
    android:orientation="vertical"
    android:padding="16dp">

    <!-- 标题栏 -->
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="48dp">

        <TextView
            android:id="@+id/tvCancel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentStart="true"
            android:layout_centerVertical="true"
            android:text="@string/cancel"
            android:textColor="@color/gray"
            android:textSize="14sp" />

        <TextView
            android:id="@+id/tvConfirm"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_centerVertical="true"
            android:text="@string/confirm"
            android:textColor="@color/green"
            android:textSize="14sp" />
    </RelativeLayout>

    <!-- 选项列表 -->
    <RadioGroup
        android:id="@+id/radioGroup"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <RadioButton
            android:id="@+id/rb24h"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:background="@drawable/bg_radio_button_selector"
            android:button="@null"
            android:checked="true"
            android:gravity="center"
            android:text="@string/expire_24h"
            android:textColor="@drawable/text_color_selector"
            android:textSize="14sp"
            android:clickable="true"
            android:focusable="true" />

        <RadioButton
            android:id="@+id/rb7d"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_marginTop="8dp"
            android:background="@drawable/bg_radio_button_selector"
            android:button="@null"
            android:gravity="center"
            android:text="@string/expire_7d"
            android:textColor="@drawable/text_color_selector"
            android:textSize="14sp"
            android:clickable="true"
            android:focusable="true" />

    </RadioGroup>

</LinearLayout>
