modal_dialog.xml 3.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="300dp"
	android:layout_height="wrap_content"
	android:paddingTop="30dp"
	android:background="@drawable/dialog_bg_rounded"
	android:orientation="vertical">


	<LinearLayout
		android:layout_width="match_parent"
		android:orientation="vertical"
		android:layout_height="wrap_content">

		<TextView
			android:id="@+id/tv_title"
			android:textSize="16sp"
			android:textStyle="bold"
			android:textColor="@color/dialog_title_text"
			android:layout_marginLeft="30dp"
			android:layout_marginRight="30dp"
			android:layout_marginBottom="20dp"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:ellipsize="end"
			android:maxLines="2"
			android:gravity="center"
			/>

		<TextView
			android:id="@+id/tv_content"
			android:layout_marginLeft="30dp"
			android:layout_marginRight="30dp"
			android:layout_marginBottom="30dp"
			android:layout_height="wrap_content"
			android:layout_width="match_parent"
			android:textColor="@color/dialog_sub_text"
			android:gravity="center"
			android:textSize="16sp"
			/>

		<EditText
			android:id="@+id/et_content"
			android:layout_marginTop="10dp"
			android:layout_marginLeft="30dp"
			android:layout_marginRight="30dp"
			android:layout_marginBottom="30dp"
			android:layout_height="wrap_content"
			android:minLines="1"
			android:maxLines="2"
			android:padding="6dp"
			android:visibility="gone"
			android:background="@color/dialog_edit_text_bg"
			android:layout_width="match_parent"
			android:textColor="@color/dialog_edit_text_color"
			android:textColorHint="@color/dialog_edit_text_hint"
			android:gravity="left|center_vertical"
			android:textSize="16sp"
			/>
			
	</LinearLayout>

	<View
		android:id="@+id/view_split_line_h"
		android:layout_below="@+id/tv_content"
		android:layout_width="match_parent"
		android:background="@color/night_bg_hair_line"
		android:layout_height="0.5dp"/>

	<LinearLayout
		android:id="@+id/line_cancel"
		android:layout_width="match_parent"
		android:layout_below="@+id/view_split_line_h"
		android:layout_height="50dp"
		android:orientation="horizontal">

		<TextView
			android:id="@+id/tvCancelAction"
			android:layout_width="0dp"
			android:layout_height="50dp"
			android:gravity="center"
			android:layout_weight="1"
			android:text="@string/prompt_model_cancel"
			android:clickable="true"
			android:background="@drawable/dialog_button_select_left"
			android:textColor="@color/button_cancel_text_color"
			android:textStyle="bold"
			android:textSize="16sp" />

		<View
			android:id="@+id/view_split_line_v"
			android:layout_width="0.5dp"
			android:background="@color/night_bg_split"
			android:layout_height="match_parent"/>

		<TextView
			android:id="@+id/tvSureAction"
			android:layout_width="0dp"
			android:layout_height="50dp"
			android:layout_weight="1"
			android:gravity="center"
			android:text="@string/prompt_model_sure"
			android:clickable="true"
			android:background="@drawable/dialog_button_select_right"
			android:textColor="@color/button_sure_text_color"
			android:textStyle="bold"
			android:textSize="16sp" />

	</LinearLayout>

</LinearLayout >