|
@@ -0,0 +1,154 @@
|
|
|
+<?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/black40"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ 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:background="@drawable/rect_dialogx_miui_bkg_night">
|
|
|
+
|
|
|
+ <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="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingTop="25dp"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingHorizontal="20dp"
|
|
|
+ android:text="Title"
|
|
|
+ android:textColor="@color/dialogxMIUITextDark"
|
|
|
+ android:textSize="20dp" />
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:scrollbarSize="7dp"
|
|
|
+ android:scrollbarThumbVertical="@drawable/scrollbar_dialogx_vertical_dark"
|
|
|
+ android:scrollbars="vertical"
|
|
|
+ android:layout_weight="1">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/txt_dialog_tip"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingTop="10dp"
|
|
|
+ android:paddingBottom="15dp"
|
|
|
+ android:layout_marginHorizontal="20dp"
|
|
|
+ android:text="This is content text."
|
|
|
+ android:textColor="@color/dialogxMIUITextDark"
|
|
|
+ android:textSize="16dp" />
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/box_custom"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:visibility="gone"></RelativeLayout>
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/txt_input"
|
|
|
+ android:theme="@style/AppTheme"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginHorizontal="20dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="15dp"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:padding="15dp"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:inputType="text"
|
|
|
+ android:background="@drawable/editbox_dialogx_miui_night"
|
|
|
+ android:scrollbars="vertical"
|
|
|
+ android:text=""
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="16dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/box_button"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:gravity="right|center_vertical"
|
|
|
+ android:layout_marginHorizontal="15dp"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_selectNegative"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginVertical="5dp"
|
|
|
+ android:background="@drawable/button_dialogx_miui_gray_night"
|
|
|
+ android:clickable="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="Cancel"
|
|
|
+ android:textColor="@color/dialogxMIUITextDark"
|
|
|
+ android:layout_marginHorizontal="6dp"
|
|
|
+ android:textSize="16dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_selectOther"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginVertical="5dp"
|
|
|
+ android:background="@drawable/button_dialogx_miui_gray_night"
|
|
|
+ android:clickable="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginHorizontal="6dp"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:text="Other"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="16dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_selectPositive"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_marginHorizontal="6dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginVertical="5dp"
|
|
|
+ android:background="@drawable/button_dialogx_miui_blue_night"
|
|
|
+ android:clickable="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="OK"
|
|
|
+ android:textColor="@color/dialogxMIUITextDark"
|
|
|
+ android:textSize="16dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </com.kongzue.dialogx.util.views.MaxRelativeLayout>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+</com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout>
|