login_main.xml
2.21 KB
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
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/header"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="100dp"
android:src="@drawable/header" />
<EditText
android:id="@+id/username"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@id/header"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:background="@drawable/input_background"
android:hint="@string/login_input_username"
android:imeOptions="actionNext"
android:maxLines="1"
android:nextFocusForward="@+id/password"
android:textSize="18sp" />
<EditText
android:id="@+id/password"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@id/username"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:background="@drawable/input_background"
android:hint="@string/login_input_password"
android:inputType="textPassword"
android:maxLines="1"
android:textSize="18sp" />
<Button
android:id="@+id/submit"
android:layout_width="160dp"
android:layout_height="wrap_content"
android:layout_below="@id/password"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:background="@color/button_bg_color"
android:text="@string/login_login_text"
android:textSize="18sp" />
</RelativeLayout>
</ScrollView>