summaryrefslogtreecommitdiffstats
path: root/res/menu
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-03-21 19:24:43 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-03-28 15:51:29 -0700
commitd25314d3305ed1a07b53991a978cd71219ef2a10 (patch)
tree797a75d9ff94055ee025294848e0154fae26f365 /res/menu
parent5f3442af6f1d1141f8f4dff033d4176214281b81 (diff)
downloadpackages_apps_Settings-d25314d3305ed1a07b53991a978cd71219ef2a10.zip
packages_apps_Settings-d25314d3305ed1a07b53991a978cd71219ef2a10.tar.gz
packages_apps_Settings-d25314d3305ed1a07b53991a978cd71219ef2a10.tar.bz2
Settings - update for new UI (no more Drawer)
- follow the UX spec by no more using a Drawer - the Dashboard is now a Fragment that contains the list of Headers - the search results are also put into a Fragment that is replacing the initial one (Dashboard or other) when expanding the SearchView - use a SearchView for query input - when tapping on a Header or a Search Result, re-launch Settings as an Activity so that we are benefiting from the Activity stack for UP affordance and BACK button - manage UP affordance to show it only when needed - move some Actions to the Menu in the ActionBar for allowing space to the Search action and removing some clutter - fix an issue with the Index and WiFiEnabler and their cached Context that was not updated when there was a Configuration change - simplify the SettingsActivity code by extracting some inner classes Change-Id: I50b5f77bb44a7fade1886114dbbc820609a5e63d
Diffstat (limited to 'res/menu')
-rw-r--r--res/menu/options_menu.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/res/menu/options_menu.xml b/res/menu/options_menu.xml
new file mode 100644
index 0000000..59e9cad
--- /dev/null
+++ b/res/menu/options_menu.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:id="@+id/search"
+ android:title="@string/search_menu"
+ android:icon="@*android:drawable/ic_search"
+ android:showAsAction="collapseActionView|ifRoom"
+ android:actionViewClass="android.widget.SearchView" />
+</menu> \ No newline at end of file