|
4 | 4 | xmlns:tools="http://schemas.android.com/tools" |
5 | 5 | android:layout_width="match_parent" |
6 | 6 | android:layout_height="match_parent" |
7 | | - android:paddingLeft="16dp" |
8 | | - android:paddingRight="16dp"> |
| 7 | + android:fitsSystemWindows="true" |
| 8 | + android:paddingStart="16dp" |
| 9 | + android:paddingEnd="16dp"> |
9 | 10 |
|
10 | 11 | <ImageView |
11 | 12 | android:id="@+id/imageView" |
|
22 | 23 |
|
23 | 24 | <TextView |
24 | 25 | android:id="@+id/textView" |
25 | | - android:layout_width="wrap_content" |
| 26 | + android:layout_width="0dp" |
26 | 27 | android:layout_height="wrap_content" |
27 | 28 | android:layout_marginBottom="20dp" |
28 | 29 | android:autoLink="web" |
|
32 | 33 | android:textSize="20sp" |
33 | 34 | app:layout_constraintBottom_toTopOf="@+id/loginApiKeyTextInputLayout" |
34 | 35 | app:layout_constraintEnd_toEndOf="parent" |
35 | | - app:layout_constraintHorizontal_bias="0.498" |
36 | 36 | app:layout_constraintStart_toStartOf="parent" |
37 | 37 | app:layout_constraintTop_toBottomOf="@+id/imageView" /> |
38 | 38 |
|
39 | 39 | <com.google.android.material.textfield.TextInputLayout |
40 | 40 | android:id="@+id/loginApiKeyTextInputLayout" |
41 | 41 | style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
42 | | - android:layout_width="match_parent" |
| 42 | + android:layout_width="0dp" |
43 | 43 | android:layout_height="wrap_content" |
44 | 44 | android:hint="@string/text_area_api_key" |
45 | 45 | app:errorEnabled="true" |
46 | 46 | app:endIconMode="custom" |
47 | 47 | app:endIconDrawable="@android:drawable/ic_menu_camera" |
48 | 48 | app:endIconContentDescription="cameraButton" |
49 | 49 | app:layout_constraintBottom_toTopOf="@+id/loginPhoneNumberLayoutSIM1" |
50 | | - app:layout_constraintTop_toBottomOf="@+id/textView" |
51 | | - tools:layout_editor_absoluteX="16dp"> |
| 50 | + app:layout_constraintEnd_toEndOf="parent" |
| 51 | + app:layout_constraintStart_toStartOf="parent" |
| 52 | + app:layout_constraintTop_toBottomOf="@+id/textView"> |
52 | 53 |
|
53 | 54 | <com.google.android.material.textfield.TextInputEditText |
54 | 55 | android:id="@+id/loginApiKeyTextInput" |
|
63 | 64 | <com.google.android.material.textfield.TextInputLayout |
64 | 65 | android:id="@+id/loginPhoneNumberLayoutSIM1" |
65 | 66 | style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
66 | | - android:layout_width="match_parent" |
| 67 | + android:layout_width="0dp" |
67 | 68 | android:layout_height="wrap_content" |
68 | | - android:layout_marginTop="-40dp" |
69 | | - android:layout_marginBottom="224dp" |
| 69 | + android:layout_marginTop="16dp" |
70 | 70 | android:hint="@string/login_phone_number_sim1" |
71 | 71 | app:errorEnabled="true" |
72 | 72 | app:placeholderText="@string/login_phone_number_hint" |
73 | | - app:layout_constraintBottom_toBottomOf="parent" |
74 | | - app:layout_constraintTop_toBottomOf="@+id/loginApiKeyTextInputLayout" |
75 | | - app:layout_constraintVertical_bias="0.137" |
76 | | - tools:layout_editor_absoluteX="16dp"> |
| 73 | + app:layout_constraintEnd_toEndOf="parent" |
| 74 | + app:layout_constraintStart_toStartOf="parent" |
| 75 | + app:layout_constraintTop_toBottomOf="@+id/loginApiKeyTextInputLayout"> |
77 | 76 |
|
78 | 77 | <com.google.android.material.textfield.TextInputEditText |
79 | 78 | android:id="@+id/loginPhoneNumberInputSIM1" |
|
88 | 87 | <com.google.android.material.textfield.TextInputLayout |
89 | 88 | android:id="@+id/loginPhoneNumberLayoutSIM2" |
90 | 89 | style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
91 | | - android:layout_width="match_parent" |
| 90 | + android:layout_width="0dp" |
92 | 91 | android:layout_height="wrap_content" |
93 | | - app:layout_constraintTop_toBottomOf="@+id/loginPhoneNumberLayoutSIM1" |
94 | | - android:layout_marginBottom="224dp" |
| 92 | + android:layout_marginTop="16dp" |
95 | 93 | android:hint="@string/login_phone_number_sim2" |
96 | 94 | app:errorEnabled="true" |
97 | 95 | app:placeholderText="@string/login_phone_number_hint" |
98 | | - app:layout_constraintVertical_bias="0.137"> |
| 96 | + app:layout_constraintEnd_toEndOf="parent" |
| 97 | + app:layout_constraintStart_toStartOf="parent" |
| 98 | + app:layout_constraintTop_toBottomOf="@+id/loginPhoneNumberLayoutSIM1"> |
99 | 99 |
|
100 | 100 | <com.google.android.material.textfield.TextInputEditText |
101 | 101 | android:id="@+id/loginPhoneNumberInputSIM2" |
|
110 | 110 | <LinearLayout |
111 | 111 | android:id="@+id/loginServerUrlLayoutContainer" |
112 | 112 | android:orientation="vertical" |
113 | | - app:layout_constraintTop_toBottomOf="@+id/loginPhoneNumberLayoutSIM2" |
114 | | - android:layout_width="match_parent" |
115 | | - android:layout_height="wrap_content"> |
| 113 | + android:layout_width="0dp" |
| 114 | + android:layout_height="wrap_content" |
| 115 | + android:layout_marginTop="16dp" |
| 116 | + app:layout_constraintEnd_toEndOf="parent" |
| 117 | + app:layout_constraintStart_toStartOf="parent" |
| 118 | + app:layout_constraintTop_toBottomOf="@+id/loginPhoneNumberLayoutSIM2"> |
116 | 119 | <com.google.android.material.textfield.TextInputLayout |
117 | 120 | android:id="@+id/loginServerUrlLayout" |
118 | 121 | style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
119 | 122 | android:layout_width="match_parent" |
120 | 123 | android:layout_height="wrap_content" |
121 | 124 | android:hint="@string/server_url" |
122 | 125 | app:errorEnabled="true" |
123 | | - app:placeholderText="@string/login_server_url_hint" |
124 | | - app:layout_constraintBottom_toBottomOf="parent" |
125 | | - app:layout_constraintVertical_bias="0.137"> |
| 126 | + app:placeholderText="@string/login_server_url_hint"> |
126 | 127 |
|
127 | 128 | <com.google.android.material.textfield.TextInputEditText |
128 | 129 | android:id="@+id/loginServerUrlInput" |
|
137 | 138 |
|
138 | 139 | <LinearLayout |
139 | 140 | android:id="@+id/linearLayout" |
140 | | - android:layout_width="wrap_content" |
| 141 | + android:layout_width="0dp" |
141 | 142 | android:layout_height="wrap_content" |
| 143 | + android:layout_marginTop="16dp" |
142 | 144 | android:orientation="vertical" |
| 145 | + android:gravity="center" |
143 | 146 | app:layout_constraintEnd_toEndOf="parent" |
144 | 147 | app:layout_constraintStart_toStartOf="parent" |
145 | 148 | app:layout_constraintTop_toBottomOf="@+id/loginServerUrlLayoutContainer"> |
|
166 | 169 | android:layout_marginTop="4dp" |
167 | 170 | android:indeterminate="true" |
168 | 171 | android:visibility="invisible" |
169 | | - app:indicatorColor="@color/pink_500" |
170 | | - app:layout_constraintTop_toBottomOf="@+id/loginButton" |
171 | | - tools:layout_editor_absoluteX="16dp" /> |
| 172 | + app:indicatorColor="@color/pink_500" /> |
172 | 173 | </LinearLayout> |
173 | 174 |
|
174 | 175 | </androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments