1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
android : layout_width =" match_parent"
4
4
android : layout_height =" match_parent"
5
- android : gravity =" center_horizontal "
5
+ android : gravity =" center "
6
6
android : orientation =" vertical"
7
- android : paddingBottom =" 10dp" >
7
+ android : paddingBottom =" 10dp"
8
+ android : padding =" 16dp"
9
+ >
8
10
9
11
<TextView
10
12
android : id =" @+id/textView1"
19
21
android : id =" @+id/username"
20
22
android : layout_width =" match_parent"
21
23
android : layout_height =" wrap_content"
22
- android : layout_alignParentLeft =" true"
23
- android : layout_below =" @+id/textView1"
24
24
android : ems =" 10"
25
25
android : hint =" @string/username"
26
26
android : inputType =" textEmailAddress" >
32
32
android : id =" @+id/password"
33
33
android : layout_width =" match_parent"
34
34
android : layout_height =" wrap_content"
35
- android : layout_alignParentLeft =" true"
36
- android : layout_below =" @+id/username"
37
35
android : ems =" 10"
38
36
android : hint =" @string/password"
39
37
android : inputType =" textPassword" />
43
41
style =" android:buttonStyle"
44
42
android : layout_width =" match_parent"
45
43
android : layout_height =" wrap_content"
46
- android : layout_alignParentLeft =" true"
47
- android : layout_below =" @+id/password"
48
44
android : layout_marginTop =" 20dp"
49
45
android : text =" @string/login_button" />
50
46
51
- <TextView
52
- android : id =" @+id/legalTextView"
53
- android : layout_width =" wrap_content"
54
- android : layout_height =" wrap_content"
55
- android : layout_alignParentBottom =" true"
56
- android : layout_centerHorizontal =" true"
57
- android : text =" @string/legal"
58
- android : textColor =" #ff0099cc" />
59
47
60
48
<com .google.android.gms.common.SignInButton
61
49
android : id =" @+id/sign_in_button"
62
- android : layout_width =" wrap_content "
50
+ android : layout_width =" match_parent "
63
51
android : layout_height =" wrap_content"
64
- android : layout_alignRight =" @+id/legalTextView"
65
- android : layout_below =" @+id/login"
66
52
android : layout_marginTop =" 28dp" >
67
53
</com .google.android.gms.common.SignInButton>
68
54
69
- </RelativeLayout >
55
+ <TextView
56
+ android : id =" @+id/legalTextView"
57
+ android : layout_width =" wrap_content"
58
+ android : layout_height =" wrap_content"
59
+ android : text =" @string/legal"
60
+ android : paddingTop =" 16dp"
61
+ android : textColor =" #ff0099cc" />
62
+ </LinearLayout >
0 commit comments