aboutsummaryrefslogtreecommitdiffstats
path: root/main/res/menu
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-05-29 07:32:29 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-05-29 07:32:29 +0200
commit47a693cdd3f8fa1b3a807c1481a1bd1464b05a4e (patch)
tree27021c495d2e3201e721decab92939166cc163b2 /main/res/menu
parentbad6ee3e4257fc0adc3511453178ebcae4060022 (diff)
downloadcgeo-47a693cdd3f8fa1b3a807c1481a1bd1464b05a4e.zip
cgeo-47a693cdd3f8fa1b3a807c1481a1bd1464b05a4e.tar.gz
cgeo-47a693cdd3f8fa1b3a807c1481a1bd1464b05a4e.tar.bz2
new: contextual action bar for cache details and trackable
This is surely not complete (as we still use other local context menus in the same actions), but a start for converting all context menus to contextual action bars.
Diffstat (limited to 'main/res/menu')
-rw-r--r--main/res/menu/details_context.xml19
1 files changed, 13 insertions, 6 deletions
diff --git a/main/res/menu/details_context.xml b/main/res/menu/details_context.xml
index 53f326a..fc61d5d 100644
--- a/main/res/menu/details_context.xml
+++ b/main/res/menu/details_context.xml
@@ -1,27 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:cgeo="http://schemas.android.com/apk/res-auto">
+ xmlns:cgeo="http://schemas.android.com/apk/res-auto" >
<item
android:id="@+id/menu_copy"
- android:title="@android:string/copy">
+ android:icon="@drawable/ic_menu_copy"
+ android:title="@android:string/copy"
+ cgeo:showAsAction="always|withText">
</item>
<item
android:id="@+id/menu_translate_to_sys_lang"
- android:title="@string/translate_to_sys_lang">
+ android:title="@string/translate_to_sys_lang"
+ cgeo:showAsAction="ifRoom">
</item>
<item
android:id="@+id/menu_translate_to_english"
- android:title="@string/translate_to_english">
+ android:title="@string/translate_to_english"
+ cgeo:showAsAction="ifRoom">
</item>
<item
android:id="@+id/menu_cache_share_field"
- android:title="@string/cache_share_field">
+ android:title="@string/cache_share_field"
+ cgeo:showAsAction="ifRoom">
</item>
<item
android:id="@+id/menu_calendar"
+ android:icon="@drawable/ic_menu_my_calendar"
android:title="@string/cache_menu_event"
- android:visible="false">
+ android:visible="false"
+ cgeo:showAsAction="ifRoom">
</item>
</menu> \ No newline at end of file