aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-09-16 19:33:43 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-09-16 19:52:26 +0200
commitece06b1933c26688d2eb6b7fa8657acbb8833728 (patch)
tree426b596e7a5e6748ac027d540a8780b96c2bcc57 /OpenKeychain/src/main/res
parent9ac7b33a4e15aea3f685a1713142aafcf1895195 (diff)
downloadopen-keychain-ece06b1933c26688d2eb6b7fa8657acbb8833728.tar.gz
open-keychain-ece06b1933c26688d2eb6b7fa8657acbb8833728.tar.bz2
open-keychain-ece06b1933c26688d2eb6b7fa8657acbb8833728.zip
multidecrypt: use bottom sheet for longclick options
Diffstat (limited to 'OpenKeychain/src/main/res')
-rw-r--r--OpenKeychain/src/main/res/layout/decrypt_list_entry.xml4
-rw-r--r--OpenKeychain/src/main/res/menu/decrypt_bottom_sheet.xml19
2 files changed, 22 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/res/layout/decrypt_list_entry.xml b/OpenKeychain/src/main/res/layout/decrypt_list_entry.xml
index 47a8d85c4..577d825b7 100644
--- a/OpenKeychain/src/main/res/layout/decrypt_list_entry.xml
+++ b/OpenKeychain/src/main/res/layout/decrypt_list_entry.xml
@@ -131,7 +131,9 @@
android:layout_height="wrap_content"
android:clickable="true"
android:background="?android:selectableItemBackground"
- android:orientation="horizontal">
+ android:orientation="horizontal"
+ style="?listPreferredItemHeight"
+ >
<LinearLayout
android:layout_width="0dp"
diff --git a/OpenKeychain/src/main/res/menu/decrypt_bottom_sheet.xml b/OpenKeychain/src/main/res/menu/decrypt_bottom_sheet.xml
new file mode 100644
index 000000000..e38acd591
--- /dev/null
+++ b/OpenKeychain/src/main/res/menu/decrypt_bottom_sheet.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item
+ android:id="@+id/decrypt_open"
+ android:title="Open with…"
+ android:icon="@drawable/ic_apps_black_24dp" />
+
+ <item
+ android:id="@+id/decrypt_share"
+ android:title="@string/btn_share_decrypted_text"
+ android:icon="@drawable/ic_share_black_24dp" />
+
+ <item
+ android:id="@+id/decrypt_save"
+ android:title="@string/btn_save"
+ android:icon="@drawable/ic_save_grey_24dp" />
+
+</menu>