All checks were successful
Auto Tag on Version Change / check-version (push) Successful in 5s
306 lines
12 KiB
XML
306 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent">
|
||
|
||
<!-- Step: Choose method -->
|
||
<ScrollView
|
||
android:id="@+id/viewChooseMethod"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:fillViewport="true">
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical"
|
||
android:paddingHorizontal="24dp"
|
||
android:paddingTop="40dp"
|
||
android:paddingBottom="24dp"
|
||
android:gravity="center_horizontal">
|
||
|
||
<ImageView
|
||
android:layout_width="80dp"
|
||
android:layout_height="80dp"
|
||
android:src="@drawable/ic_lock"
|
||
android:tint="?attr/colorPrimary"
|
||
android:contentDescription="@null"
|
||
android:layout_marginBottom="16dp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/security_setup"
|
||
android:textAppearance="?attr/textAppearanceHeadlineMedium"
|
||
android:textColor="?attr/colorOnSurface"
|
||
android:gravity="center"
|
||
android:layout_marginBottom="8dp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/security_setup_desc"
|
||
android:textAppearance="?attr/textAppearanceBodyMedium"
|
||
android:textColor="?attr/colorOnSurfaceVariant"
|
||
android:gravity="center"
|
||
android:layout_marginBottom="40dp" />
|
||
|
||
<com.google.android.material.card.MaterialCardView
|
||
android:id="@+id/cardPin"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="12dp"
|
||
android:clickable="true"
|
||
android:focusable="true"
|
||
app:cardCornerRadius="16dp"
|
||
app:strokeWidth="1dp"
|
||
app:strokeColor="?attr/colorOutline">
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="horizontal"
|
||
android:padding="20dp"
|
||
android:gravity="center_vertical">
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical">
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/method_pin"
|
||
android:textAppearance="?attr/textAppearanceTitleMedium"
|
||
android:textColor="?attr/colorOnSurface" />
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/method_pin_desc"
|
||
android:textAppearance="?attr/textAppearanceBodySmall"
|
||
android:textColor="?attr/colorOnSurfaceVariant" />
|
||
</LinearLayout>
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="›"
|
||
android:textSize="24sp"
|
||
android:textColor="?attr/colorOnSurfaceVariant" />
|
||
</LinearLayout>
|
||
</com.google.android.material.card.MaterialCardView>
|
||
|
||
<com.google.android.material.card.MaterialCardView
|
||
android:id="@+id/cardPattern"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:clickable="true"
|
||
android:focusable="true"
|
||
app:cardCornerRadius="16dp"
|
||
app:strokeWidth="1dp"
|
||
app:strokeColor="?attr/colorOutline">
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="horizontal"
|
||
android:padding="20dp"
|
||
android:gravity="center_vertical">
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical">
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/method_pattern"
|
||
android:textAppearance="?attr/textAppearanceTitleMedium"
|
||
android:textColor="?attr/colorOnSurface" />
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/method_pattern_desc"
|
||
android:textAppearance="?attr/textAppearanceBodySmall"
|
||
android:textColor="?attr/colorOnSurfaceVariant" />
|
||
</LinearLayout>
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="›"
|
||
android:textSize="24sp"
|
||
android:textColor="?attr/colorOnSurfaceVariant" />
|
||
</LinearLayout>
|
||
</com.google.android.material.card.MaterialCardView>
|
||
|
||
</LinearLayout>
|
||
</ScrollView>
|
||
|
||
<!-- Step: PIN entry / confirmation -->
|
||
<LinearLayout
|
||
android:id="@+id/viewPinSetup"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical"
|
||
android:paddingHorizontal="24dp"
|
||
android:paddingBottom="40dp"
|
||
android:visibility="gone">
|
||
|
||
<View
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="1" />
|
||
|
||
<TextView
|
||
android:id="@+id/tvPinTitle"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/enter_pin"
|
||
android:textAppearance="?attr/textAppearanceHeadlineSmall"
|
||
android:textColor="?attr/colorOnSurface"
|
||
android:gravity="center"
|
||
android:layout_marginBottom="4dp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/pin_min_digits"
|
||
android:textAppearance="?attr/textAppearanceBodySmall"
|
||
android:textColor="?attr/colorOnSurfaceVariant"
|
||
android:gravity="center" />
|
||
|
||
<View
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="1" />
|
||
|
||
<TextView
|
||
android:id="@+id/tvPinDots"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_gravity="center_horizontal"
|
||
android:textSize="26sp"
|
||
android:letterSpacing="0.3"
|
||
android:textColor="?attr/colorPrimary"
|
||
android:layout_marginBottom="24dp" />
|
||
|
||
<LinearLayout
|
||
android:id="@+id/numpadContainer"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical"
|
||
android:gravity="center_horizontal" />
|
||
|
||
<com.google.android.material.button.MaterialButton
|
||
android:id="@+id/btnPinBack"
|
||
style="@style/Widget.Material3.Button.TextButton"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_gravity="center_horizontal"
|
||
android:layout_marginTop="8dp"
|
||
android:text="@string/back" />
|
||
|
||
</LinearLayout>
|
||
|
||
<!-- Step: Pattern entry / confirmation -->
|
||
<LinearLayout
|
||
android:id="@+id/viewPatternSetup"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical"
|
||
android:paddingHorizontal="24dp"
|
||
android:paddingBottom="40dp"
|
||
android:visibility="gone">
|
||
|
||
<View
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="1" />
|
||
|
||
<TextView
|
||
android:id="@+id/tvPatternTitle"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/draw_pattern"
|
||
android:textAppearance="?attr/textAppearanceHeadlineSmall"
|
||
android:textColor="?attr/colorOnSurface"
|
||
android:gravity="center"
|
||
android:layout_marginBottom="4dp" />
|
||
|
||
<TextView
|
||
android:id="@+id/tvPatternStatus"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/pattern_min_dots"
|
||
android:textAppearance="?attr/textAppearanceBodySmall"
|
||
android:textColor="?attr/colorOnSurfaceVariant"
|
||
android:gravity="center" />
|
||
|
||
<View
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="1" />
|
||
|
||
<sh.sar.basedbank.ui.onboarding.PatternView
|
||
android:id="@+id/patternView"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="2"
|
||
android:layout_gravity="center_horizontal" />
|
||
|
||
<com.google.android.material.button.MaterialButton
|
||
android:id="@+id/btnPatternBack"
|
||
style="@style/Widget.Material3.Button.TextButton"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_gravity="center_horizontal"
|
||
android:layout_marginTop="8dp"
|
||
android:text="@string/back" />
|
||
|
||
</LinearLayout>
|
||
|
||
|
||
<!-- Step: Already configured -->
|
||
<LinearLayout
|
||
android:id="@+id/viewConfigured"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical"
|
||
android:gravity="center"
|
||
android:paddingHorizontal="24dp"
|
||
android:visibility="gone">
|
||
|
||
<ImageView
|
||
android:layout_width="80dp"
|
||
android:layout_height="80dp"
|
||
android:src="@drawable/ic_check_circle"
|
||
android:tint="?attr/colorPrimary"
|
||
android:contentDescription="@null"
|
||
android:layout_marginBottom="24dp" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/security_already_configured"
|
||
android:textAppearance="?attr/textAppearanceHeadlineSmall"
|
||
android:textColor="?attr/colorOnSurface"
|
||
android:gravity="center"
|
||
android:layout_marginBottom="8dp" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/security_already_configured_desc"
|
||
android:textAppearance="?attr/textAppearanceBodyMedium"
|
||
android:textColor="?attr/colorOnSurfaceVariant"
|
||
android:gravity="center"
|
||
android:layout_marginBottom="32dp" />
|
||
|
||
<com.google.android.material.button.MaterialButton
|
||
android:id="@+id/btnChangeLock"
|
||
style="@style/Widget.Material3.Button.OutlinedButton"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:text="@string/settings_change_lock" />
|
||
|
||
</LinearLayout>
|
||
|
||
</FrameLayout>
|