aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-09-07 17:27:25 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-09-07 17:27:25 +0200
commitc026dac8fc9d1afede0fb7fb0179a634d14b612e (patch)
tree09d0bfd7dc0120da70b44b29505c3327337575be /OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml
parent1f477c80597d51cbc977fd1e38052b86bd54089d (diff)
downloadopen-keychain-c026dac8fc9d1afede0fb7fb0179a634d14b612e.tar.gz
open-keychain-c026dac8fc9d1afede0fb7fb0179a634d14b612e.tar.bz2
open-keychain-c026dac8fc9d1afede0fb7fb0179a634d14b612e.zip
Remove table layout, use hint text for edit fields
Diffstat (limited to 'OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml')
-rw-r--r--OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml68
1 files changed, 27 insertions, 41 deletions
diff --git a/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml b/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml
index eb72ada03..3a19dd452 100644
--- a/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml
+++ b/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
-<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:orientation="vertical"
android:paddingLeft="16dp"
- android:paddingRight="16dp"
- android:stretchColumns="1">
+ android:paddingRight="16dp">
<CheckBox
android:id="@+id/passphrase_no_passphrase"
@@ -12,41 +12,27 @@
android:layout_height="wrap_content"
android:text="@string/label_no_passphrase" />
- <TableRow android:layout_marginBottom="5dip">
-
- <TextView
- android:id="@+id/passphrase_label_passphrase"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:padding="4dp"
- android:text="@string/label_passphrase" />
-
- <EditText
- android:id="@+id/passphrase_passphrase"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="textPassword"
- android:padding="4dp" />
- </TableRow>
-
- <TableRow android:layout_marginBottom="10dip">
-
- <TextView
- android:id="@+id/passphrase_label_passphrase_again"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:padding="4dp"
- android:text="@string/label_passphrase_again" />
-
- <EditText
- android:id="@+id/passphrase_passphrase_again"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:imeOptions="actionDone"
- android:inputType="textPassword"
- android:padding="4dp" />
- </TableRow>
-
-</TableLayout> \ No newline at end of file
+ <EditText
+ android:id="@+id/passphrase_passphrase"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:layout_marginBottom="8dp"
+ android:imeOptions="actionNext"
+ android:inputType="textPassword"
+ android:hint="@string/label_passphrase"
+ android:ems="10"
+ android:layout_gravity="center_horizontal" />
+
+ <EditText
+ android:id="@+id/passphrase_passphrase_again"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
+ android:imeOptions="actionDone"
+ android:inputType="textPassword"
+ android:hint="@string/label_passphrase_again"
+ android:ems="10"
+ android:layout_gravity="center_horizontal" />
+
+</LinearLayout> \ No newline at end of file