Files
keepass2android/src/keepass2android-app/Resources/layout/fingerprint_setup.xml
2025-01-07 11:20:08 +01:00

127 lines
5.5 KiB
XML

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:background="?android:attr/colorBackground"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_marginBottom="12dip"
android:layout_marginLeft="12dip"
android:layout_marginRight="12dip"
android:layout_marginTop="12dip">
<TextView
android:id="@+id/tvFatalError"
android:text="@string/fingerprint_os_error"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:id="@+id/radio_buttons"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RadioButton
android:id="@+id/radio_fingerprint_disabled"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/disable_fingerprint_unlock" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RadioButton
android:id="@+id/radio_fingerprint_quickunlock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/enable_fingerprint_quickunlock" />
<keepass2android.views.Kp2aShortHelpView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance_Help_Dense"
app:help_text="@string/enable_fingerprint_quickunlock_Info"
app:title_text="@string/enable_fingerprint_quickunlock"
/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:id="@+id/container_fingerprint_unlock"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RadioButton
android:id="@+id/radio_fingerprint_unlock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/enable_fingerprint_unlock" />
<keepass2android.views.Kp2aShortHelpView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance_Help_Dense"
app:help_text="@string/enable_fingerprint_unlock_Info"
app:title_text="@string/enable_fingerprint_unlock"
/>
</LinearLayout>
<CheckBox
android:id="@+id/close_database_after_failed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:text="@string/CloseDbAfterFailedAttempts" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:text="@string/WarnFingerprintInvalidated"
/>
</LinearLayout>
<RelativeLayout
android:id="@+id/fingerprint_auth_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="8dp"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:paddingTop="16dp">
<TextView
android:id="@+id/fingerprint_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:text="@string/fingerprint_description"
android:textAppearance="@android:style/TextAppearance.Material.Subhead"
android:textColor="?android:attr/textColorSecondary" />
<ImageView
android:id="@+id/fingerprint_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_below="@+id/fingerprint_description"
android:layout_marginTop="20dp"
android:src="@drawable/baseline_fingerprint_24" />
<TextView
android:id="@+id/fingerprint_status"
style="@style/TextAppearance.AppCompat.Body1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/fingerprint_icon"
android:layout_alignTop="@+id/fingerprint_icon"
android:layout_marginStart="16dp"
android:layout_toEndOf="@+id/fingerprint_icon"
android:gravity="center_vertical"
android:text=""
android:textColor="@color/md_theme_primary" />
<Button
android:id="@+id/cancel_button"
android:text="@string/cancel"
android:paddingTop="16dp"
android:layout_below="@id/fingerprint_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
</LinearLayout>