OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 android:layout_width="match_parent" android:layout_height="match_p
arent"> | |
4 | |
5 <android.support.v7.widget.CardView | |
6 xmlns:card_view="http://schemas.android.com/apk/res-auto" | |
7 android:layout_width="wrap_content" | |
8 android:layout_height="match_parent" | |
9 card_view:cardUseCompatPadding="true" | |
10 card_view:cardCornerRadius="1dp" | |
11 card_view:cardElevation="3dp" | |
12 android:paddingLeft="10dp"> | |
13 | |
14 <RelativeLayout | |
15 xmlns:android="http://schemas.android.com/apk/res/android" | |
16 android:layout_width="match_parent" | |
17 android:layout_height="match_parent" | |
18 android:padding="15dp"> | |
19 | |
20 <TextView | |
21 android:id="@+id/login_title" | |
22 android:layout_width="match_parent" | |
23 android:layout_height="wrap_content" | |
24 android:gravity="center" | |
25 android:padding="10dp" | |
26 android:textAppearance="@android:style/TextAppearance.Materi
al.Title" | |
27 android:textColor="@color/accent_material_light" | |
28 android:text="@string/login_title"/> | |
29 | |
30 <EditText | |
31 android:id="@+id/username" | |
32 android:layout_width="match_parent" | |
33 android:layout_height="wrap_content" | |
34 android:hint="@string/hint_username" | |
35 android:layout_marginTop="80dp" | |
36 android:textAppearance="@android:style/TextAppearance.Materi
al.Body1" | |
37 android:inputType="text"/> | |
38 | |
39 <EditText | |
40 android:id="@+id/password" | |
41 android:layout_width="match_parent" | |
42 android:layout_height="wrap_content" | |
43 android:layout_alignLeft="@+id/username" | |
44 android:layout_below="@+id/username" | |
45 android:layout_marginTop="30dp" | |
46 android:layout_marginBottom="30dp" | |
47 android:hint="@string/hint_password" | |
48 android:textAppearance="@android:style/TextAppearance.Materi
al.Body1" | |
49 android:inputType="textPassword"/> | |
50 | |
51 <Button | |
52 android:id="@+id/loginout_button" | |
53 android:layout_width="match_parent" | |
54 android:layout_height="wrap_content" | |
55 android:layout_alignLeft="@+id/password" | |
56 android:layout_alignParentBottom="true" | |
57 android:text="@string/login_button" | |
58 android:background="@color/accent_material_light" | |
59 android:textColor="#FFFFFF" | |
60 android:textAppearance="@android:style/TextAppearance.Materi
al.Button" | |
61 android:onClick="toggleLogin"/> | |
62 </RelativeLayout> | |
63 | |
64 </android.support.v7.widget.CardView> | |
65 | |
66 </LinearLayout> | |
OLD | NEW |