|
35 | 35 | app:layout_constraintHorizontal_bias="0.498" |
36 | 36 | app:layout_constraintStart_toStartOf="parent" /> |
37 | 37 |
|
| 38 | + <com.google.android.material.textfield.TextInputLayout |
| 39 | + android:id="@+id/loginPhoneNumberLayout" |
| 40 | + style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
| 41 | + android:layout_width="match_parent" |
| 42 | + android:layout_height="wrap_content" |
| 43 | + android:layout_marginBottom="224dp" |
| 44 | + android:hint="@string/phone_number" |
| 45 | + app:errorEnabled="true" |
| 46 | + app:placeholderText="@string/login_phone_number_hint" |
| 47 | + app:layout_constraintBottom_toBottomOf="parent" |
| 48 | + app:layout_constraintTop_toBottomOf="@+id/loginApiKeyTextInputLayout" |
| 49 | + app:layout_constraintVertical_bias="0.137" |
| 50 | + tools:layout_editor_absoluteX="16dp"> |
| 51 | + |
| 52 | + <com.google.android.material.textfield.TextInputEditText |
| 53 | + android:id="@+id/loginPhoneNumberInput" |
| 54 | + android:layout_width="match_parent" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:inputType="textMultiLine" |
| 57 | + tools:ignore="TextContrastCheck" /> |
| 58 | + |
| 59 | + </com.google.android.material.textfield.TextInputLayout> |
| 60 | + |
38 | 61 | <com.google.android.material.textfield.TextInputLayout |
39 | 62 | android:id="@+id/loginApiKeyTextInputLayout" |
40 | 63 | style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" |
41 | 64 | android:layout_width="match_parent" |
42 | 65 | android:layout_height="wrap_content" |
43 | 66 | app:errorEnabled="true" |
44 | | - app:errorContentDescription="How are you" |
45 | 67 | android:hint="@string/text_area_api_key" |
46 | 68 | app:layout_constraintBottom_toBottomOf="parent" |
47 | 69 | app:layout_constraintTop_toTopOf="parent" |
|
57 | 79 | </com.google.android.material.textfield.TextInputLayout> |
58 | 80 |
|
59 | 81 | <LinearLayout |
| 82 | + android:id="@+id/linearLayout" |
60 | 83 | android:layout_width="wrap_content" |
61 | 84 | android:layout_height="wrap_content" |
62 | 85 | android:layout_weight="50" |
|
65 | 88 | app:layout_constraintStart_toStartOf="parent" |
66 | 89 | app:layout_constraintTop_toBottomOf="@+id/loginApiKeyTextInputLayout"> |
67 | 90 |
|
68 | | - <com.google.android.material.button.MaterialButton |
69 | | - android:id="@+id/loginButton" |
70 | | - style="@style/Widget.MaterialComponents.Button.Icon" |
71 | | - android:layout_width="wrap_content" |
72 | | - android:layout_height="wrap_content" |
73 | | - android:layout_marginTop="16dp" |
74 | | - android:backgroundTint="#2196f3" |
75 | | - android:drawableTint="@color/white" |
76 | | - android:padding="10dp" |
77 | | - android:text="@string/sign_in_button" |
78 | | - android:textColor="@color/white" |
79 | | - android:textSize="16sp" |
80 | | - app:icon="@drawable/ic_login" |
81 | | - app:iconTint="@color/white" |
82 | | - app:layout_constraintEnd_toEndOf="parent" |
83 | | - app:layout_constraintStart_toStartOf="parent" |
84 | | - app:layout_constraintTop_toBottomOf="@+id/loginApiKeyTextInputLayout" |
85 | | - tools:ignore="TextContrastCheck" /> |
86 | | - |
87 | 91 | <com.google.android.material.progressindicator.LinearProgressIndicator |
88 | 92 | android:id="@+id/loginProgressIndicator" |
89 | 93 | android:layout_width="match_parent" |
90 | | - android:visibility="invisible" |
91 | 94 | android:layout_height="wrap_content" |
92 | | - android:indeterminate="true" |
93 | 95 | android:layout_marginTop="4dp" |
| 96 | + android:indeterminate="true" |
| 97 | + android:visibility="invisible" |
94 | 98 | app:indicatorColor="@color/pink_500" |
95 | 99 | app:layout_constraintTop_toBottomOf="@+id/loginButton" |
96 | 100 | tools:layout_editor_absoluteX="16dp" /> |
97 | 101 | </LinearLayout> |
98 | 102 |
|
| 103 | + <com.google.android.material.button.MaterialButton |
| 104 | + android:id="@+id/loginButton" |
| 105 | + style="@style/Widget.MaterialComponents.Button.Icon" |
| 106 | + android:layout_width="wrap_content" |
| 107 | + android:layout_height="wrap_content" |
| 108 | + android:backgroundTint="#2196f3" |
| 109 | + android:drawableTint="@color/white" |
| 110 | + android:padding="10dp" |
| 111 | + android:text="@string/sign_in_button" |
| 112 | + android:textColor="@color/white" |
| 113 | + android:textSize="16sp" |
| 114 | + app:icon="@drawable/ic_login" |
| 115 | + app:iconTint="@color/white" |
| 116 | + app:layout_constraintEnd_toEndOf="parent" |
| 117 | + app:layout_constraintStart_toStartOf="parent" |
| 118 | + app:layout_constraintTop_toBottomOf="@+id/loginPhoneNumberLayout" |
| 119 | + tools:ignore="TextContrastCheck" /> |
| 120 | + |
99 | 121 | </androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments