diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-09-07 17:27:25 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-09-07 17:27:25 +0200 |
commit | c026dac8fc9d1afede0fb7fb0179a634d14b612e (patch) | |
tree | 09d0bfd7dc0120da70b44b29505c3327337575be /OpenKeychain/src | |
parent | 1f477c80597d51cbc977fd1e38052b86bd54089d (diff) | |
download | open-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')
-rw-r--r-- | OpenKeychain/src/main/res/layout/passphrase_dialog.xml | 80 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml | 68 |
2 files changed, 65 insertions, 83 deletions
diff --git a/OpenKeychain/src/main/res/layout/passphrase_dialog.xml b/OpenKeychain/src/main/res/layout/passphrase_dialog.xml index ebc5615e4..f003e6994 100644 --- a/OpenKeychain/src/main/res/layout/passphrase_dialog.xml +++ b/OpenKeychain/src/main/res/layout/passphrase_dialog.xml @@ -1,57 +1,53 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:orientation="vertical"> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:orientation="vertical"> - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:id="@+id/input"> + + <EditText + android:id="@+id/passphrase_passphrase" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:orientation="horizontal" - android:id="@+id/input"> - - <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:imeOptions="actionDone" - android:inputType="textPassword" - android:padding="4dp" /> - </LinearLayout> - - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:orientation="horizontal" - android:id="@+id/progress" - android:visibility="gone"> + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp" + android:imeOptions="actionDone" + android:inputType="textPassword" + android:hint="@string/label_passphrase" + android:ems="10" + android:layout_gravity="center_horizontal" /> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:id="@+id/progress" + android:visibility="gone"> + + <ProgressBar + style="?android:attr/progressBarStyle" + android:layout_gravity="center_horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> <TextView + style="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:paddingLeft="8dp" android:padding="4dp" android:text="@string/label_unlock" - /> + android:layout_gravity="center_vertical" /> - <ProgressBar - style="?android:attr/progressBarStyleSmall" - android:layout_width="match_parent" - android:layout_height="match_parent" - /> </LinearLayout> </LinearLayout>
\ No newline at end of file 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 |