added configurable menu

This commit is contained in:
Philipp Schaefer
2014-03-02 18:26:02 +01:00
parent b173f778a5
commit b3ec1974b6
4 changed files with 46 additions and 24 deletions

View File

@ -128,13 +128,12 @@
<string name="pref_enable_dev_mode">Enable developer mode</string>
<string name="pref_enable_dev_mode_sum">If enabled, all IITC sources will be loaded from external storage of the Android device.
Please copy all sources from $IITC_folder/build/mobile/ to /sdcard/IITC_Mobile/dev/.</string>
<string name="pref_advanced_menu">Display advanced menu</string>
<string name="pref_advanced_menu_sum">In addition to the default IITC buttons the advanced menu
contains a debug pane plus an option to clear cookies</string>
<string name="pref_disable_splash">Disable Splash Screen</string>
<string name="pref_fake_user_agent">Fake User Agent</string>
<string name="pref_fake_user_agent_sum">Let IITCm appear as a desktop browser for the intel site.
Note: If just want to use the desktop mode use the \'force desktop mode\' setting</string>
<string name="pref_android_menu">Configure IITCm menu</string>
<string name="pref_android_menu_sum">Toggle visibility of IITCm menu entries</string>
<string-array name="pref_hide_fullscreen">
<item>System Bar</item>
@ -148,6 +147,30 @@
<item>8</item>
<item>16</item>
</string-array>
<string-array name="pref_hide_fullscreen_defaults">
<item>2</item>
<item>4</item>
</string-array>
<string-array name="pref_android_menu_entries">
<item>@string/menu_search</item>
<item>@string/menu_locate</item>
<item>@string/menu_layer_chooser</item>
<item>@string/menu_toggle_fullscreen</item>
<item>@string/menu_reload</item>
<item>@string/menu_send_screenshot</item>
<item>@string/menu_clear_cookies</item>
<item>@string/menu_debug</item>
</string-array>
<string-array name="pref_android_menu_default">
<item>@string/menu_search</item>
<item>@string/menu_locate</item>
<item>@string/menu_layer_chooser</item>
<item>@string/menu_toggle_fullscreen</item>
<item>@string/menu_reload</item>
<item>@string/menu_send_screenshot</item>
</string-array>
<string-array name="pref_user_location_titles">
<item>Don\'t show user position</item>
<item>Show user position on map</item>

View File

@ -18,9 +18,11 @@
android:title="@string/pref_user_zoom"/>
<MultiSelectListPreference
android:defaultValue="@array/pref_hide_fullscreen_defaults"
android:entries="@array/pref_hide_fullscreen"
android:entryValues="@array/pref_hide_fullscreen_vals"
android:key="pref_fullscreen"
android:persistent="true"
android:summary="@string/pref_fullscreen_sum"
android:title="@string/pref_fullscreen"/>
@ -77,11 +79,14 @@
<PreferenceCategory
android:key="pref_advanced_ui_cat"
android:title="@string/pref_ui_cat">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_advanced_menu"
android:summary="@string/pref_advanced_menu_sum"
android:title="@string/pref_advanced_menu"/>
<MultiSelectListPreference
android:defaultValue="@array/pref_android_menu_default"
android:entries="@array/pref_android_menu_entries"
android:entryValues="@array/pref_android_menu_entries"
android:key="pref_android_menu"
android:persistent="true"
android:summary="@string/pref_android_menu_sum"
android:title="@string/pref_android_menu"/>
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_disable_splash"