From ba9a4bec3a12332634772baaba9d68c5a68772f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Thu, 13 Mar 2014 20:11:21 +0100 Subject: [PATCH] Improve list item view, borderless button for API < 11 --- .../drawable/selector_transparent_button.xml | 7 ++ .../src/main/res/layout/key_list_item.xml | 113 ++++++++++-------- .../select_secret_key_layout_fragment.xml | 2 +- .../src/main/res/values/colors.xml | 3 +- 4 files changed, 74 insertions(+), 51 deletions(-) create mode 100644 OpenPGP-Keychain/src/main/res/drawable/selector_transparent_button.xml diff --git a/OpenPGP-Keychain/src/main/res/drawable/selector_transparent_button.xml b/OpenPGP-Keychain/src/main/res/drawable/selector_transparent_button.xml new file mode 100644 index 000000000..6675a5c70 --- /dev/null +++ b/OpenPGP-Keychain/src/main/res/drawable/selector_transparent_button.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/OpenPGP-Keychain/src/main/res/layout/key_list_item.xml b/OpenPGP-Keychain/src/main/res/layout/key_list_item.xml index f52693138..3f1b25cc0 100644 --- a/OpenPGP-Keychain/src/main/res/layout/key_list_item.xml +++ b/OpenPGP-Keychain/src/main/res/layout/key_list_item.xml @@ -1,63 +1,78 @@ - - + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:focusable="true" + android:orientation="vertical" + android:paddingLeft="8dp" + android:paddingRight="4dp" + android:paddingTop="4dp" + android:paddingBottom="4dp"> - + -