diff options
| author | rsudev <rasch@munin-soft.de> | 2014-08-10 15:19:49 +0200 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2014-08-13 08:11:56 +0200 |
| commit | e1cae3e58947f0361498ddf1b01d2a4a7cb88c7e (patch) | |
| tree | 19e80ace2f6dc152b4d00036463765c4069dd53c /main/res | |
| parent | 60b4fb63eaf44509629d0230f65a9558a6c095d3 (diff) | |
| download | cgeo-e1cae3e58947f0361498ddf1b01d2a4a7cb88c7e.zip cgeo-e1cae3e58947f0361498ddf1b01d2a4a7cb88c7e.tar.gz cgeo-e1cae3e58947f0361498ddf1b01d2a4a7cb88c7e.tar.bz2 | |
Fixes #3843, Action Bar: Secondary navigation tool?
- added an action provider that handles the long click and redirects to secondary default navigation
Diffstat (limited to 'main/res')
| -rw-r--r-- | main/res/layout/navigation_action.xml | 15 | ||||
| -rw-r--r-- | main/res/menu/cache_options.xml | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/main/res/layout/navigation_action.xml b/main/res/layout/navigation_action.xml new file mode 100644 index 0000000..ea535d7 --- /dev/null +++ b/main/res/layout/navigation_action.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <ImageButton + android:id="@+id/default_navigation_action" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:scaleType="centerInside" + android:src="@drawable/ic_menu_compass" + android:background="@drawable/actionbar_button" /> + +</LinearLayout> diff --git a/main/res/menu/cache_options.xml b/main/res/menu/cache_options.xml index cb32215..2e0e2bd 100644 --- a/main/res/menu/cache_options.xml +++ b/main/res/menu/cache_options.xml @@ -6,7 +6,8 @@ android:id="@+id/menu_default_navigation" android:icon="@drawable/ic_menu_compass" android:title="@string/cache_menu_navigate" - app:showAsAction="ifRoom"> <!-- will be replaced --> + app:actionProviderClass="cgeo.geocaching.ui.NavigationActionProvider" + app:showAsAction="always"> <!-- will be replaced --> </item> <item android:id="@+id/menu_navigate" |
