1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <LinearLayout
3
+ xmlns : android =" http://schemas.android.com/apk/res/android"
4
+ android : orientation =" vertical"
5
+ android : layout_width =" fill_parent"
6
+ android : layout_height =" fill_parent"
7
+ >
8
+ <!-- padding 内边距 layout_margin 外边距
9
+ android:layout_alignParentTop 布局的位置是否处于顶部 -->
10
+
11
+ <RelativeLayout
12
+ android : id =" @+id/login_div"
13
+ android : layout_width =" fill_parent"
14
+ android : layout_height =" wrap_content"
15
+ android : padding =" 15dip"
16
+ android : layout_margin =" 15dip"
17
+ >
18
+ <!-- 账号 -->
19
+ <TextView
20
+ android : id =" @+id/login_user_input"
21
+ android : layout_width =" wrap_content"
22
+ android : layout_height =" wrap_content"
23
+ android : layout_alignParentTop =" true"
24
+ android : layout_marginTop =" 5dp"
25
+ android : text =" @string/login_label_username"
26
+ style =" @style/normalText" />
27
+ <EditText
28
+ android : id =" @+id/username_edit"
29
+ android : layout_width =" fill_parent"
30
+ android : layout_height =" wrap_content"
31
+ android : hint =" @string/login_username_hint"
32
+ android : layout_below =" @id/login_user_input"
33
+ android : singleLine =" true"
34
+ android : inputType =" text" />
35
+ <!-- 密码 text -->
36
+ <TextView
37
+ android : id =" @+id/login_password_input"
38
+ android : layout_width =" wrap_content"
39
+ android : layout_height =" wrap_content"
40
+ android : layout_below =" @id/username_edit"
41
+ android : layout_marginTop =" 3dp"
42
+ android : text =" @string/login_label_password"
43
+ style =" @style/normalText" />
44
+ <EditText
45
+ android : id =" @+id/password_edit"
46
+ android : layout_width =" fill_parent"
47
+ android : layout_height =" wrap_content"
48
+ android : layout_below =" @id/login_password_input"
49
+ android : password =" true"
50
+ android : singleLine =" true"
51
+ android : inputType =" textPassword" />
52
+ <!-- 登录button -->
53
+ <Button
54
+ android : id =" @+id/signin_button"
55
+ android : layout_width =" wrap_content"
56
+ android : layout_height =" wrap_content"
57
+ android : layout_below =" @id/password_edit"
58
+ android : layout_alignRight =" @id/password_edit"
59
+ android : text =" @string/login_label_signin"
60
+ android : background =" @drawable/blue_button" />
61
+ </RelativeLayout >
62
+
63
+ <RelativeLayout
64
+ android : layout_width =" fill_parent"
65
+ android : layout_height =" wrap_content" >
66
+ <TextView android : id =" @+id/register_link"
67
+ android : text =" @string/login_register_link"
68
+ android : layout_width =" wrap_content"
69
+ android : layout_height =" wrap_content"
70
+ android : layout_marginLeft =" 15dp"
71
+ android : textColor =" #888"
72
+ android : textColorLink =" #FF0066CC" />
73
+ <ImageView android : id =" @+id/miniTwitter_logo"
74
+ android : src =" @drawable/cat"
75
+ android : layout_width =" wrap_content"
76
+ android : layout_height =" wrap_content"
77
+ android : layout_alignParentRight =" true"
78
+ android : layout_alignParentBottom =" true"
79
+ android : layout_marginRight =" 25dp"
80
+ android : layout_marginLeft =" 10dp"
81
+ android : layout_marginBottom =" 25dp" />
82
+ <ImageView android : src =" @drawable/logo"
83
+ android : layout_width =" wrap_content"
84
+ android : layout_height =" wrap_content"
85
+ android : layout_toLeftOf =" @id/miniTwitter_logo"
86
+ android : layout_alignBottom =" @id/miniTwitter_logo"
87
+ android : paddingBottom =" 8dp" />
88
+ </RelativeLayout >
89
+ </LinearLayout >
0 commit comments