|
@@ -20,85 +20,96 @@
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="fill_parent"
|
|
|
android:layout_height="fill_parent"
|
|
|
+ android:background="@color/bg_default"
|
|
|
|
|
|
android:gravity="center_horizontal"
|
|
|
android:padding="@dimen/standard_padding">
|
|
|
|
|
|
- <LinearLayout
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:id="@+id/card_view"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/header"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:gravity="center_horizontal"
|
|
|
- android:layout_gravity="center_horizontal"
|
|
|
- android:text="@string/pass_code_enter_pass_code"
|
|
|
- android:textColor="@color/text_color"
|
|
|
- android:textSize="@dimen/two_line_primary_text_size" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/explanation"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_horizontal"
|
|
|
- android:gravity="center_horizontal"
|
|
|
- android:text="@string/pass_code_configure_your_pass_code_explanation"
|
|
|
- android:textAppearance="@android:style/TextAppearance.Small"
|
|
|
- android:textSize="@dimen/two_line_secondary_text_size" />
|
|
|
+ android:layout_gravity="center"
|
|
|
+ card_view:cardCornerRadius="4dp">
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_width="fill_parent"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center_horizontal">
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:id="@+id/txt0"
|
|
|
- style="@style/PassCodeStyle"
|
|
|
- android:cursorVisible="true"
|
|
|
- android:focusable="true"
|
|
|
- android:hint="@string/hidden_character"
|
|
|
- android:imeOptions="flagNoExtractUi"
|
|
|
- android:importantForAutofill="no"
|
|
|
- android:textCursorDrawable="@color/primary">
|
|
|
-
|
|
|
- <requestFocus />
|
|
|
- </com.google.android.material.textfield.TextInputEditText>
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:id="@+id/txt1"
|
|
|
- style="@style/PassCodeStyle"
|
|
|
- android:cursorVisible="true"
|
|
|
- android:hint="@string/hidden_character"
|
|
|
- android:imeOptions="flagNoExtractUi"
|
|
|
- android:importantForAutofill="no" />
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:id="@+id/txt2"
|
|
|
- style="@style/PassCodeStyle"
|
|
|
- android:cursorVisible="true"
|
|
|
- android:hint="@string/hidden_character"
|
|
|
- android:imeOptions="flagNoExtractUi"
|
|
|
- android:importantForAutofill="no" />
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:id="@+id/txt3"
|
|
|
- style="@style/PassCodeStyle"
|
|
|
- android:cursorVisible="true"
|
|
|
- android:hint="@string/hidden_character"
|
|
|
- android:imeOptions="flagNoExtractUi"
|
|
|
- android:importantForAutofill="no" />
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/header"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:text="@string/pass_code_enter_pass_code"
|
|
|
+ android:textColor="@color/text_color"
|
|
|
+ android:textSize="@dimen/two_line_primary_text_size" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/explanation"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:text="@string/pass_code_configure_your_pass_code_explanation"
|
|
|
+ android:textAppearance="@android:style/TextAppearance.Small"
|
|
|
+ android:textSize="@dimen/two_line_secondary_text_size" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="fill_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center_horizontal">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/txt0"
|
|
|
+ style="@style/PassCodeStyle"
|
|
|
+ android:cursorVisible="true"
|
|
|
+ android:focusable="true"
|
|
|
+ android:hint="@string/hidden_character"
|
|
|
+ android:imeOptions="flagNoExtractUi"
|
|
|
+ android:importantForAutofill="no"
|
|
|
+ android:textCursorDrawable="@color/primary">
|
|
|
+
|
|
|
+ <requestFocus />
|
|
|
+ </com.google.android.material.textfield.TextInputEditText>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/txt1"
|
|
|
+ style="@style/PassCodeStyle"
|
|
|
+ android:cursorVisible="true"
|
|
|
+ android:hint="@string/hidden_character"
|
|
|
+ android:imeOptions="flagNoExtractUi"
|
|
|
+ android:importantForAutofill="no" />
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/txt2"
|
|
|
+ style="@style/PassCodeStyle"
|
|
|
+ android:cursorVisible="true"
|
|
|
+ android:hint="@string/hidden_character"
|
|
|
+ android:imeOptions="flagNoExtractUi"
|
|
|
+ android:importantForAutofill="no" />
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/txt3"
|
|
|
+ style="@style/PassCodeStyle"
|
|
|
+ android:cursorVisible="true"
|
|
|
+ android:hint="@string/hidden_character"
|
|
|
+ android:imeOptions="flagNoExtractUi"
|
|
|
+ android:importantForAutofill="no" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/cancel"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:text="@string/common_cancel"
|
|
|
+ android:theme="@style/Button.Borderless"
|
|
|
+ app:cornerRadius="@dimen/button_corner_radius"/>
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
- android:id="@+id/cancel"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_horizontal"
|
|
|
- android:text="@string/common_cancel"
|
|
|
- android:theme="@style/Button.Primary"
|
|
|
- app:cornerRadius="@dimen/button_corner_radius" />
|
|
|
- </LinearLayout>
|
|
|
-</ScrollView>
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+</ScrollView>
|