-
Notifications
You must be signed in to change notification settings - Fork 0
/
activity_log_in.xml
134 lines (112 loc) · 4.76 KB
/
activity_log_in.xml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http:https://schemas.android.com/apk/res/android"
xmlns:app="http:https://schemas.android.com/apk/res-auto"
xmlns:tools="http:https://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="9"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:scaleType="fitCenter"
app:srcCompat="@drawable/app_logo" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="4"
android:orientation="vertical">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/emailEditTextLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginTop="12dp"
android:layout_marginHorizontal="24dp"
tools:ignore="NestedWeights">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/emailEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="Email" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/passwordEditTextLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginTop="12dp"
android:layout_marginHorizontal="24dp"
app:counterEnabled="true"
app:counterMaxLength="15"
app:passwordToggleEnabled="true">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/passwordEditText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="Password"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:orientation="horizontal"
android:padding="12dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="9" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="11">
<Button
android:id="@+id/signUpButton"
android:fontFamily="@font/font"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/sign_up"
android:textStyle="bold" />
<Button
android:id="@+id/loginButton"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_marginStart="8dp"
android:fontFamily="@font/font"
android:layout_marginEnd="14dp"
android:text="@string/log_in"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="5"
android:gravity="center"
android:paddingBottom="30dp"
android:orientation="vertical">
<com.google.android.gms.common.SignInButton
android:id="@+id/googleLoginButton"
android:layout_width="200dp"
android:layout_height="50dp"
android:layout_gravity="center" />
<com.facebook.login.widget.LoginButton
android:id="@+id/facebookLoginButton"
android:layout_width="200dp"
android:layout_height="50dp"
android:layout_gravity="center"/>
</LinearLayout>
</LinearLayout>
<!-- android:enabled="false" <- 를 통해서 보라색 색깔을 걷어낼 수있다-->
<!-- -> 는 비활성화되서 색깔이 빠진거다. 입력을 아직 받지 않았다라는 것을 구현하기 위한-->