123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?xml version="1.0" encoding="utf-8"?>
- <com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/box_root"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/black20"
- android:orientation="vertical">
- <RelativeLayout
- android:id="@+id/box_bkg"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <com.kongzue.dialogx.util.views.MaxRelativeLayout
- android:id="@+id/bkg"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:background="@drawable/rect_dialogx_miui_bkg_light"
- android:focusableInTouchMode="true">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:clickable="true"
- android:orientation="vertical">
- <TextView
- android:id="@+id/txt_dialog_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:gravity="center"
- android:paddingLeft="20dp"
- android:paddingTop="27dp"
- android:paddingRight="20dp"
- android:text="Title"
- android:textColor="@color/black"
- android:textSize="18dp" />
- <com.kongzue.dialogx.util.views.DialogScrollView
- android:id="@+id/scrollView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:overScrollMode="never"
- android:scrollbarSize="7dp"
- android:scrollbars="vertical">
- <LinearLayout
- android:id="@+id/box_content"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:id="@+id/txt_dialog_tip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginLeft="26dp"
- android:layout_marginTop="10dp"
- android:layout_marginRight="26dp"
- android:gravity="start"
- android:paddingBottom="5dp"
- android:text="This is content text."
- android:textColor="@color/black70"
- android:textSize="16dp" />
- <RelativeLayout
- android:id="@+id/box_custom"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- <RelativeLayout
- android:id="@+id/box_list"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:visibility="gone" />
- </LinearLayout>
- </com.kongzue.dialogx.util.views.DialogScrollView>
- <LinearLayout
- android:id="@+id/box_button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginLeft="26dp"
- android:layout_marginTop="10dp"
- android:layout_marginRight="26dp"
- android:layout_marginBottom="20dp"
- android:gravity="right|center_vertical"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/btn_selectNegative"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_marginLeft="6dp"
- android:layout_marginTop="5dp"
- android:layout_marginRight="6dp"
- android:layout_marginBottom="5dp"
- android:layout_weight="1"
- android:background="@drawable/button_dialogx_miui_gray"
- android:clickable="true"
- android:gravity="center"
- android:text="Cancel"
- android:textColor="@color/black80"
- android:textSize="16dp" />
- <TextView
- android:id="@+id/btn_selectOther"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_marginLeft="6dp"
- android:layout_marginTop="5dp"
- android:layout_marginRight="6dp"
- android:layout_marginBottom="5dp"
- android:layout_weight="1"
- android:background="@drawable/button_dialogx_miui_gray"
- android:clickable="true"
- android:gravity="center"
- android:text="Other"
- android:textColor="@color/dialogxMIUIButtonText"
- android:textSize="16dp"
- android:visibility="gone" />
- <TextView
- android:id="@+id/btn_selectPositive"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_marginLeft="6dp"
- android:layout_marginTop="5dp"
- android:layout_marginRight="6dp"
- android:layout_marginBottom="5dp"
- android:layout_weight="1"
- android:background="@drawable/button_dialogx_miui_blue"
- android:clickable="true"
- android:gravity="center"
- android:text="OK"
- android:textColor="@color/white"
- android:textSize="16dp" />
- </LinearLayout>
- </LinearLayout>
- </com.kongzue.dialogx.util.views.MaxRelativeLayout>
- </RelativeLayout>
- </com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout>
|