|
@@ -0,0 +1,162 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ 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_material_you_bottom_bkg_light"
|
|
|
+ android:clickable="true"
|
|
|
+ android:focusableInTouchMode="true">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/img_tab"
|
|
|
+ android:layout_width="60dp"
|
|
|
+ android:layout_height="2dp"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:src="@drawable/rect_dialogx_material_you_dialogtap" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingTop="15dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/txt_dialog_title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingTop="15dp"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:paddingRight="20dp"
|
|
|
+ android:text="Title"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="21dp" />
|
|
|
+
|
|
|
+ <com.kongzue.dialogx.util.views.BottomDialogScrollView
|
|
|
+ android:id="@+id/scrollView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ 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="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:layout_marginRight="20dp"
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ 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" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </com.kongzue.dialogx.util.views.BottomDialogScrollView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:gravity="right|center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_selectOther"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:background="@drawable/button_dialogx_material_you_light"
|
|
|
+ android:clickable="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingLeft="15dp"
|
|
|
+ android:paddingRight="15dp"
|
|
|
+ android:text="Other"
|
|
|
+ android:textColor="@color/colorAccent"
|
|
|
+ android:textSize="15dp"
|
|
|
+ android:visibility="gone" />
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_selectNegative"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:background="@drawable/button_dialogx_material_you_light"
|
|
|
+ android:clickable="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingLeft="15dp"
|
|
|
+ android:paddingRight="15dp"
|
|
|
+ android:tag="cancel"
|
|
|
+ android:text="Cancel"
|
|
|
+ android:textColor="@color/colorAccent"
|
|
|
+ android:textSize="15dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_selectPositive"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:background="@drawable/button_dialogx_material_you_light"
|
|
|
+ android:clickable="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingLeft="15dp"
|
|
|
+ android:paddingRight="15dp"
|
|
|
+ android:text="OK"
|
|
|
+ android:textColor="@color/colorAccent"
|
|
|
+ android:textSize="15dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </com.kongzue.dialogx.util.views.MaxRelativeLayout>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+</com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout>
|