diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-09-07 15:30:32 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-09-07 15:30:32 +0200 |
commit | 0e83df21cfae2a1e792af9e02c006305b24fb530 (patch) | |
tree | 9bd4a94eb8fef221133fdaf47e092d182ea21f1e /OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml | |
parent | 070600573225db96c3ac0219b0ddc7786a642f1e (diff) | |
download | open-keychain-0e83df21cfae2a1e792af9e02c006305b24fb530.tar.gz open-keychain-0e83df21cfae2a1e792af9e02c006305b24fb530.tar.bz2 open-keychain-0e83df21cfae2a1e792af9e02c006305b24fb530.zip |
More UI rework
Diffstat (limited to 'OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml')
-rw-r--r-- | OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml | 118 |
1 files changed, 80 insertions, 38 deletions
diff --git a/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml b/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml index 0da4d7f36..cd74255c7 100644 --- a/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml +++ b/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml @@ -41,19 +41,29 @@ android:layout_height="wrap_content" android:text="@string/api_settings_settings" /> - <TextView + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:text="@string/api_settings_key" - android:textAppearance="?android:attr/textAppearanceMedium" /> + android:padding="0dp" + android:layout_margin="0dp"> - <org.sufficientlysecure.keychain.ui.widget.SignKeySpinner - android:id="@+id/api_account_settings_key_spinner" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginBottom="8dp" - android:layout_gravity="center_vertical" /> + <TextView + android:paddingLeft="8dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/api_settings_key" + android:paddingRight="8dp" /> + + <org.sufficientlysecure.keychain.ui.widget.SignKeySpinner + android:id="@+id/api_account_settings_key_spinner" + android:minHeight="56dip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" /> + + </LinearLayout> <View android:layout_width="match_parent" @@ -67,9 +77,8 @@ android:paddingRight="8dp" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="match_parent" - android:layout_height="wrap_content" android:text="@string/api_settings_create_key" - android:minHeight="48dp" + android:layout_height="?android:attr/listPreferredItemHeight" android:drawableRight="@drawable/ic_action_new_account" android:drawablePadding="8dp" android:gravity="center_vertical" @@ -87,38 +96,71 @@ custom:foldedLabel="@string/api_settings_show_advanced" custom:unFoldedLabel="@string/api_settings_hide_advanced"> - <TextView + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="@string/label_encryption_algorithm" - android:textAppearance="?android:attr/textAppearanceMedium" /> - - <Spinner - android:id="@+id/api_account_settings_encryption_algorithm" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> - - <TextView + android:padding="0dp" + android:layout_margin="0dp"> + + <TextView + android:paddingLeft="8dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/label_encryption_algorithm" + android:paddingRight="8dp" /> + + <Spinner + android:id="@+id/api_account_settings_encryption_algorithm" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="@string/label_hash_algorithm" - android:textAppearance="?android:attr/textAppearanceMedium" /> - - <Spinner - android:id="@+id/api_account_settings_hash_algorithm" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> - - <TextView + android:padding="0dp" + android:layout_margin="0dp"> + + <TextView + android:paddingLeft="8dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/label_hash_algorithm" + android:paddingRight="8dp" /> + + <Spinner + android:id="@+id/api_account_settings_hash_algorithm" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="@string/label_message_compression" - android:textAppearance="?android:attr/textAppearanceMedium" /> - - <Spinner - android:id="@+id/api_account_settings_compression" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:padding="0dp" + android:layout_margin="0dp"> + + <TextView + android:paddingLeft="8dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/label_message_compression" + android:paddingRight="8dp" /> + + <Spinner + android:id="@+id/api_account_settings_compression" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> </org.sufficientlysecure.keychain.ui.widget.FoldableLinearLayout> |