|
8 | 8 | android:layout_width="400sp"
|
9 | 9 | android:layout_height="wrap_content"
|
10 | 10 | android:layout_gravity="center"
|
11 |
| - android:layout_marginTop="8dp"> |
| 11 | + android:layout_marginTop="@dimen/small_gap"> |
12 | 12 |
|
13 | 13 | <android.support.v7.widget.CardView
|
14 | 14 | android:layout_width="match_parent"
|
15 | 15 | android:layout_height="wrap_content"
|
16 |
| - android:layout_marginTop="32dp" |
17 |
| - android:layout_marginBottom="16dp" |
18 |
| - android:layout_marginEnd="16dp" |
19 |
| - android:layout_marginLeft="16dp" |
20 |
| - android:layout_marginRight="16dp" |
21 |
| - android:layout_marginStart="16dp" |
| 16 | + android:layout_marginTop="@dimen/large_gap" |
| 17 | + android:layout_marginBottom="@dimen/standard_gap" |
| 18 | + android:layout_marginEnd="@dimen/standard_gap" |
| 19 | + android:layout_marginLeft="@dimen/standard_gap" |
| 20 | + android:layout_marginRight="@dimen/standard_gap" |
| 21 | + android:layout_marginStart="@dimen/standard_gap" |
22 | 22 | app:cardCornerRadius="4dp"
|
23 | 23 | app:cardElevation="4dp">
|
24 | 24 |
|
|
34 | 34 | android:layout_height="wrap_content"
|
35 | 35 | android:background="@color/primaryColor"
|
36 | 36 | android:gravity="center"
|
37 |
| - android:paddingBottom="32dp" |
38 |
| - android:paddingTop="32dp" |
| 37 | + android:paddingBottom="@dimen/large_gap" |
| 38 | + android:paddingTop="@dimen/large_gap" |
39 | 39 | android:text="@string/login_to_your_account"
|
40 | 40 | android:textColor="@android:color/white"
|
41 |
| - android:textSize="24sp" /> |
| 41 | + android:textSize="@dimen/heading_text_size" /> |
42 | 42 |
|
43 | 43 | <FrameLayout
|
44 | 44 | android:id="@+id/error_message_container"
|
|
52 | 52 | android:id="@+id/error_message"
|
53 | 53 | android:layout_width="match_parent"
|
54 | 54 | android:layout_height="wrap_content"
|
55 |
| - android:layout_marginEnd="16dp" |
56 |
| - android:layout_marginLeft="16dp" |
57 |
| - android:layout_marginRight="16dp" |
58 |
| - android:layout_marginStart="16dp" |
59 |
| - android:paddingBottom="8dp" |
60 |
| - android:paddingTop="8dp" |
| 55 | + android:layout_marginEnd="@dimen/standard_gap" |
| 56 | + android:layout_marginLeft="@dimen/standard_gap" |
| 57 | + android:layout_marginRight="@dimen/standard_gap" |
| 58 | + android:layout_marginStart="@dimen/standard_gap" |
| 59 | + android:paddingBottom="@dimen/small_gap" |
| 60 | + android:paddingTop="@dimen/small_gap" |
61 | 61 | android:textColor="@color/secondaryDarkColor"
|
62 | 62 | tools:text="Check your password, something doesnt look right" />
|
63 | 63 | </FrameLayout>
|
|
67 | 67 | android:layout_width="match_parent"
|
68 | 68 | android:layout_height="wrap_content"
|
69 | 69 | android:layout_below="@id/error_message_container"
|
70 |
| - android:layout_marginBottom="16dp" |
71 |
| - android:layout_marginEnd="16dp" |
72 |
| - android:layout_marginLeft="16dp" |
73 |
| - android:layout_marginRight="16dp" |
74 |
| - android:layout_marginStart="16dp" |
75 |
| - android:layout_marginTop="16dp"> |
| 70 | + android:layout_marginBottom="@dimen/standard_gap" |
| 71 | + android:layout_marginEnd="@dimen/standard_gap" |
| 72 | + android:layout_marginLeft="@dimen/standard_gap" |
| 73 | + android:layout_marginRight="@dimen/standard_gap" |
| 74 | + android:layout_marginStart="@dimen/standard_gap" |
| 75 | + android:layout_marginTop="@dimen/standard_gap"> |
76 | 76 |
|
77 | 77 | <android.support.design.widget.TextInputEditText
|
78 | 78 | android:id="@+id/loginUsername"
|
|
93 | 93 | android:layout_width="match_parent"
|
94 | 94 | android:layout_height="wrap_content"
|
95 | 95 | android:layout_below="@id/username_container"
|
96 |
| - android:layout_marginBottom="16dp" |
97 |
| - android:layout_marginEnd="16dp" |
98 |
| - android:layout_marginLeft="16dp" |
99 |
| - android:layout_marginRight="16dp" |
100 |
| - android:layout_marginStart="16dp" |
| 96 | + android:layout_marginBottom="@dimen/standard_gap" |
| 97 | + android:layout_marginEnd="@dimen/standard_gap" |
| 98 | + android:layout_marginLeft="@dimen/standard_gap" |
| 99 | + android:layout_marginRight="@dimen/standard_gap" |
| 100 | + android:layout_marginStart="@dimen/standard_gap" |
101 | 101 | app:passwordToggleEnabled="false">
|
102 | 102 |
|
103 | 103 | <android.support.design.widget.TextInputEditText
|
|
115 | 115 | android:layout_width="match_parent"
|
116 | 116 | android:layout_height="wrap_content"
|
117 | 117 | android:layout_below="@id/password_container"
|
118 |
| - android:layout_marginBottom="16dp" |
119 |
| - android:layout_marginEnd="16dp" |
120 |
| - android:layout_marginLeft="16dp" |
121 |
| - android:layout_marginRight="16dp" |
122 |
| - android:layout_marginStart="16dp" |
| 118 | + android:layout_marginBottom="@dimen/standard_gap" |
| 119 | + android:layout_marginEnd="@dimen/standard_gap" |
| 120 | + android:layout_marginLeft="@dimen/standard_gap" |
| 121 | + android:layout_marginRight="@dimen/standard_gap" |
| 122 | + android:layout_marginStart="@dimen/standard_gap" |
123 | 123 | android:visibility="gone"
|
124 | 124 | app:passwordToggleEnabled="false"
|
125 | 125 | tools:visibility="visible">
|
|
141 | 141 | android:layout_width="match_parent"
|
142 | 142 | android:layout_height="wrap_content"
|
143 | 143 | android:layout_below="@id/two_factor_container"
|
144 |
| - android:layout_marginBottom="16dp" |
145 |
| - android:layout_marginEnd="16dp" |
146 |
| - android:layout_marginLeft="16dp" |
147 |
| - android:layout_marginRight="16dp" |
148 |
| - android:layout_marginStart="16dp"> |
| 144 | + android:layout_marginBottom="@dimen/standard_gap" |
| 145 | + android:layout_marginEnd="@dimen/standard_gap" |
| 146 | + android:layout_marginLeft="@dimen/standard_gap" |
| 147 | + android:layout_marginRight="@dimen/standard_gap" |
| 148 | + android:layout_marginStart="@dimen/standard_gap"> |
149 | 149 |
|
150 | 150 | <Button
|
151 | 151 | android:id="@+id/signupButton"
|
152 | 152 | android:layout_width="0dp"
|
153 | 153 | style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
154 | 154 | android:layout_height="wrap_content"
|
155 | 155 | android:layout_gravity="center_horizontal"
|
156 |
| - android:layout_marginEnd="8dp" |
157 |
| - android:layout_marginRight="8dp" |
| 156 | + android:layout_marginEnd="@dimen/small_gap" |
| 157 | + android:layout_marginRight="@dimen/small_gap" |
158 | 158 | android:layout_weight="1"
|
159 | 159 | android:text="@string/signup" />
|
160 | 160 |
|
|
163 | 163 | android:layout_width="0dp"
|
164 | 164 | style="@style/Widget.AppCompat.Button.Colored"
|
165 | 165 | android:layout_height="wrap_content"
|
166 |
| - android:layout_marginLeft="8dp" |
167 |
| - android:layout_marginStart="8dp" |
| 166 | + android:layout_marginLeft="@dimen/small_gap" |
| 167 | + android:layout_marginStart="@dimen/small_gap" |
168 | 168 | android:layout_weight="1"
|
169 | 169 | android:enabled="false"
|
170 | 170 | android:text="@string/login" />
|
171 | 171 |
|
172 | 172 | </LinearLayout>
|
173 | 173 |
|
174 |
| - <RelativeLayout |
175 |
| - android:layout_width="match_parent" |
176 |
| - android:layout_height="wrap_content" |
| 174 | + <fr.free.nrw.commons.ui.widget.HtmlTextView |
| 175 | + android:id="@+id/about_privacy_policy" |
| 176 | + style="?android:textAppearanceSmall" |
177 | 177 | android:layout_below="@id/buttonFrame"
|
178 |
| - android:layout_marginBottom="16dp" |
179 |
| - android:layout_marginEnd="16dp" |
180 |
| - android:layout_marginLeft="16dp" |
181 |
| - android:layout_marginRight="16dp" |
182 |
| - android:layout_marginStart="16dp"> |
183 |
| - |
184 |
| - <fr.free.nrw.commons.ui.widget.HtmlTextView |
185 |
| - android:id="@+id/about_privacy_policy" |
186 |
| - style="?android:textAppearanceSmall" |
187 |
| - android:layout_width="wrap_content" |
188 |
| - android:layout_height="wrap_content" |
189 |
| - android:layout_marginTop="16dp" |
190 |
| - android:layout_gravity="center_horizontal" |
191 |
| - android:text="@string/about_privacy_policy" |
192 |
| - android:layout_centerHorizontal="true"/> |
193 |
| - |
194 |
| - </RelativeLayout> |
| 178 | + android:layout_width="wrap_content" |
| 179 | + android:layout_height="wrap_content" |
| 180 | + android:layout_marginBottom="@dimen/standard_gap" |
| 181 | + android:layout_gravity="center_horizontal" |
| 182 | + android:text="@string/about_privacy_policy" |
| 183 | + android:layout_centerHorizontal="true"/> |
195 | 184 |
|
196 | 185 | </RelativeLayout>
|
197 | 186 | </android.support.v7.widget.CardView>
|
|
0 commit comments