aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-04-09 19:42:27 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-04-09 19:42:27 +0200
commit21e6110b6ded9df4677ca950dee494c4cfc94b9b (patch)
treed1261139959db8548a109622c2bf40947d4e0e30 /OpenKeychain/src/main/res
parent35f9189a82b8ce8e67b9f5c5df0c3b15ac393403 (diff)
downloadopen-keychain-21e6110b6ded9df4677ca950dee494c4cfc94b9b.tar.gz
open-keychain-21e6110b6ded9df4677ca950dee494c4cfc94b9b.tar.bz2
open-keychain-21e6110b6ded9df4677ca950dee494c4cfc94b9b.zip
Prettify some layouts
Diffstat (limited to 'OpenKeychain/src/main/res')
-rw-r--r--OpenKeychain/src/main/res/layout/key_list_fragment.xml1
-rw-r--r--OpenKeychain/src/main/res/layout/view_key_certs_fragment.xml3
-rw-r--r--OpenKeychain/src/main/res/layout/view_key_keys_item.xml83
-rw-r--r--OpenKeychain/src/main/res/layout/view_key_userids_item.xml3
4 files changed, 43 insertions, 47 deletions
diff --git a/OpenKeychain/src/main/res/layout/key_list_fragment.xml b/OpenKeychain/src/main/res/layout/key_list_fragment.xml
index f2430f213..951f8d729 100644
--- a/OpenKeychain/src/main/res/layout/key_list_fragment.xml
+++ b/OpenKeychain/src/main/res/layout/key_list_fragment.xml
@@ -105,5 +105,4 @@
</FrameLayout>
-
</FrameLayout>
diff --git a/OpenKeychain/src/main/res/layout/view_key_certs_fragment.xml b/OpenKeychain/src/main/res/layout/view_key_certs_fragment.xml
index 2de87f18a..08738ce40 100644
--- a/OpenKeychain/src/main/res/layout/view_key_certs_fragment.xml
+++ b/OpenKeychain/src/main/res/layout/view_key_certs_fragment.xml
@@ -1,7 +1,6 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
+ android:layout_height="match_parent">
<se.emilsjolander.stickylistheaders.StickyListHeadersListView
android:layout_width="match_parent"
diff --git a/OpenKeychain/src/main/res/layout/view_key_keys_item.xml b/OpenKeychain/src/main/res/layout/view_key_keys_item.xml
index aecedc39b..66cd4d7b5 100644
--- a/OpenKeychain/src/main/res/layout/view_key_keys_item.xml
+++ b/OpenKeychain/src/main/res/layout/view_key_keys_item.xml
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="8dip"
- android:paddingRight="3dip" >
+ android:paddingRight="3dip">
<ImageView
android:id="@+id/ic_masterKey"
@@ -12,56 +12,34 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingRight="6dip"
+ android:layout_alignParentLeft="true"
android:src="@drawable/key_small" />
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingBottom="2dip"
- android:paddingTop="2dip" >
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/keyId"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingRight="2dip"
- android:text="@string/label_key_id"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:typeface="monospace" />
-
- <TextView
- android:id="@+id/keyDetails"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingRight="5dip"
- android:text="(RSA, 1024bit)"
- android:textAppearance="?android:attr/textAppearanceSmall" />
- </LinearLayout>
- <TextView
- android:id="@+id/keyExpiry"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="right"
- android:text="@string/label_expiry"
- android:textAppearance="?android:attr/textAppearanceSmall" />
- </LinearLayout>
+ <TextView
+ android:id="@+id/keyId"
+ android:layout_toRightOf="@+id/ic_masterKey"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingRight="2dip"
+ android:text="@string/label_key_id"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:typeface="monospace" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
- android:gravity="right"
+ android:layout_alignParentEnd="true"
android:paddingBottom="2dip"
- android:paddingTop="2dip" >
+ android:paddingTop="2dip"
+ android:id="@+id/linearLayout">
- <ImageView android:id="@+id/ic_revokedKey"
+ <ImageView
+ android:id="@+id/ic_revokedKey"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:src="@drawable/revoked_key_small"/>
+ android:src="@drawable/revoked_key_small" />
+
<ImageView
android:id="@+id/ic_certifyKey"
android:layout_width="wrap_content"
@@ -81,4 +59,25 @@
android:src="@drawable/signed_small" />
</LinearLayout>
-</LinearLayout>
+ <TextView
+ android:id="@+id/keyDetails"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingRight="5dip"
+ android:text="(RSA, 1024bit)"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:layout_below="@+id/ic_masterKey"
+ android:layout_toRightOf="@+id/ic_masterKey" />
+
+ <TextView
+ android:id="@+id/keyExpiry"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="right"
+ android:text="@string/label_expiry"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:layout_alignTop="@+id/keyDetails"
+ android:layout_alignRight="@+id/linearLayout"
+ android:layout_alignEnd="@+id/linearLayout" />
+
+</RelativeLayout>
diff --git a/OpenKeychain/src/main/res/layout/view_key_userids_item.xml b/OpenKeychain/src/main/res/layout/view_key_userids_item.xml
index e47f591cb..e76902512 100644
--- a/OpenKeychain/src/main/res/layout/view_key_userids_item.xml
+++ b/OpenKeychain/src/main/res/layout/view_key_userids_item.xml
@@ -42,8 +42,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_email"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:paddingLeft="10dp" />
+ android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>