diff options
Diffstat (limited to 'OpenKeychain/src/main')
-rw-r--r-- | OpenKeychain/src/main/res/layout-w360dp/passphrase_dialog_backup_code.xml | 73 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/layout-w400dp/passphrase_dialog_backup_code.xml | 2 |
2 files changed, 74 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/res/layout-w360dp/passphrase_dialog_backup_code.xml b/OpenKeychain/src/main/res/layout-w360dp/passphrase_dialog_backup_code.xml new file mode 100644 index 000000000..426616c75 --- /dev/null +++ b/OpenKeychain/src/main/res/layout-w360dp/passphrase_dialog_backup_code.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingBottom="14dp" + android:paddingTop="14dp"> + + <LinearLayout + android:id="@+id/input" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/passphrase_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="24dp" + android:text="@string/passphrase_for_backup" + android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:layout_marginTop="8dp"> + + <com.github.pinball83.maskededittext.MaskedEditText + android:id="@+id/backup_code" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:textSize="16dp" + android:textStyle="bold" + android:typeface="monospace" + app:mask="****-****-****-****-****-****" + app:maskIconColor="@color/colorPrimary" + app:notMaskedSymbol="*" + tools:ignore="SpUsage" /> + + </LinearLayout> + </LinearLayout> + + <LinearLayout + android:id="@+id/progress" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:orientation="horizontal" + android:visibility="invisible"> + + <ProgressBar + style="?android:attr/progressBarStyle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" /> + + <TextView + style="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="4dp" + android:text="@string/label_unlock" /> + + </LinearLayout> + +</RelativeLayout>
\ No newline at end of file diff --git a/OpenKeychain/src/main/res/layout-w400dp/passphrase_dialog_backup_code.xml b/OpenKeychain/src/main/res/layout-w400dp/passphrase_dialog_backup_code.xml index 426616c75..a55033380 100644 --- a/OpenKeychain/src/main/res/layout-w400dp/passphrase_dialog_backup_code.xml +++ b/OpenKeychain/src/main/res/layout-w400dp/passphrase_dialog_backup_code.xml @@ -35,7 +35,7 @@ android:layout_gravity="center_horizontal" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" - android:textSize="16dp" + android:textSize="18dp" android:textStyle="bold" android:typeface="monospace" app:mask="****-****-****-****-****-****" |