1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
- android : id =" @+id/ll_parent "
4
- android : layout_width =" match_parent "
2
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ android : id =" @+id/layout_content "
4
+ android : layout_width =" fill_parent "
5
5
android : layout_height =" wrap_content"
6
- android : layout_gravity =" center"
7
- android : layout_marginLeft =" 10dip"
8
- android : layout_marginRight =" 10dip"
9
- android : background =" @android:color/transparent" >
6
+ android : background =" @drawable/roundlayout"
7
+ android : gravity =" center_horizontal"
8
+ android : orientation =" vertical" >
10
9
11
10
<LinearLayout
12
- android : id =" @+id/layout_content "
13
- android : layout_width =" fill_parent "
11
+ android : id =" @+id/layout_havemsg "
12
+ android : layout_width =" match_parent "
14
13
android : layout_height =" wrap_content"
15
- android : layout_alignParentTop =" true"
16
- android : background =" @drawable/roundlayout"
17
- android : gravity =" center_horizontal"
18
- android : orientation =" vertical" >
14
+ android : orientation =" vertical"
15
+ android : paddingLeft =" 15dp"
16
+ android : paddingRight =" 15dp" >
19
17
20
- <LinearLayout
21
- android : id =" @+id/layout_havemsg"
18
+ <TextView
22
19
android : layout_width =" fill_parent"
23
20
android : layout_height =" wrap_content"
24
- android : orientation =" vertical"
25
- android : paddingLeft =" 15dp"
26
- android : paddingRight =" 15dp" >
21
+ android : layout_marginTop =" 15dp"
22
+ android : gravity =" center_horizontal"
23
+ android : lineSpacingExtra =" 6dp"
24
+ android : text =" 我是标题"
25
+ android : textColor =" #292d33"
26
+ android : textSize =" 18sp" />
27
27
28
- < TextView
29
- android : id =" @id/dialog_title "
30
- android : layout_width =" fill_parent"
31
- android : layout_height =" wrap_content"
32
- android : layout_marginTop =" 15dp"
33
- android : gravity = " center_horizontal "
34
- android : lineSpacingExtra = " 6dp "
35
- android : text = " 订单提交成功 "
36
- android : textColor = " #292d33 "
37
- android : textSize = " 18sp "
38
- android : visibility = " visible " />
28
+ < EditText
29
+ android : id =" @+ id/et_content "
30
+ android : layout_width =" fill_parent"
31
+ android : layout_height =" wrap_content"
32
+ android : layout_marginBottom =" 15dp"
33
+ android : layout_marginTop = " 15dp "
34
+ android : gravity = " start|center_horizontal "
35
+ android : hint = " 请输入想要的内容 "
36
+ android : lineSpacingExtra = " 6dp "
37
+ android : textColor = " #525a66 "
38
+ android : textSize = " 15sp " />
39
39
40
- <EditText
41
- android : id =" @+id/et_content"
42
- android : layout_width =" fill_parent"
43
- android : layout_height =" wrap_content"
44
- android : layout_marginBottom =" 15dp"
45
- android : layout_marginTop =" 15dp"
46
- android : gravity =" center_horizontal"
47
- android : hint =" 请输入想要的内容"
48
- android : lineSpacingExtra =" 6dp"
49
- android : textColor =" #525a66"
50
- android : textSize =" 15sp" />
51
- </LinearLayout >
40
+ </LinearLayout >
52
41
53
- <TextView
54
- android : id =" @+id/txt_onlytitle"
42
+ <LinearLayout
43
+ android : layout_width =" fill_parent"
44
+ android : layout_height =" wrap_content"
45
+ android : orientation =" horizontal" >
46
+
47
+ <Button
48
+ android : id =" @id/btn_cancel"
55
49
android : layout_width =" fill_parent"
56
50
android : layout_height =" wrap_content"
51
+ android : layout_weight =" 1"
52
+ android : background =" @drawable/selector_btn_cancel_border_bg"
57
53
android : gravity =" center"
58
- android : lineSpacingExtra =" 6dp"
59
- android : minHeight =" 106dp"
60
- android : paddingLeft =" 20dp"
61
- android : paddingRight =" 20dp"
62
- android : text =" 订单提交成功"
63
- android : textColor =" #292d33"
54
+ android : minHeight =" 44dp"
55
+ android : text =" 取消"
56
+ android : textColor =" #f7595a"
64
57
android : textSize =" 17sp"
65
58
android : visibility =" gone" />
66
59
67
- <LinearLayout
60
+ <Button
61
+ android : id =" @id/btn_ok"
68
62
android : layout_width =" fill_parent"
69
63
android : layout_height =" wrap_content"
70
- android : orientation =" horizontal" >
71
-
72
- <Button
73
- android : id =" @id/btn_cancel"
74
- android : layout_width =" fill_parent"
75
- android : layout_height =" wrap_content"
76
- android : layout_weight =" 1"
77
- android : background =" @drawable/selector_btn_cancel_border_bg"
78
- android : gravity =" center"
79
- android : minHeight =" 44dp"
80
- android : text =" 取消"
81
- android : textColor =" #f7595a"
82
- android : textSize =" 17sp"
83
- android : visibility =" gone" />
84
-
85
- <Button
86
- android : id =" @id/btn_ok"
87
- android : layout_width =" fill_parent"
88
- android : layout_height =" wrap_content"
89
- android : layout_weight =" 1"
90
- android : background =" @drawable/selector_btn_assuere_border_bg"
91
- android : gravity =" center"
92
- android : minHeight =" 44dp"
93
- android : text =" 确定"
94
- android : textColor =" #f7595a"
95
- android : textSize =" 17sp" />
96
- </LinearLayout >
64
+ android : layout_weight =" 1"
65
+ android : background =" @drawable/selector_btn_assuere_border_bg"
66
+ android : gravity =" center"
67
+ android : minHeight =" 44dp"
68
+ android : text =" 确定"
69
+ android : textColor =" #f7595a"
70
+ android : textSize =" 17sp" />
97
71
</LinearLayout >
98
-
99
- </RelativeLayout >
72
+ </LinearLayout >
0 commit comments