diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2014-02-03 18:12:25 -0800 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2014-03-03 14:46:17 -0800 |
commit | 6f0739a3d9a9eca1591ae6bada1dd4d1d92c0def (patch) | |
tree | a0257a0ab653412c44e477b43265f4d3de362746 /res/values | |
parent | 882e6cde603de53532f219b7f7548ceea641bc26 (diff) | |
download | packages_apps_Settings-6f0739a3d9a9eca1591ae6bada1dd4d1d92c0def.zip packages_apps_Settings-6f0739a3d9a9eca1591ae6bada1dd4d1d92c0def.tar.gz packages_apps_Settings-6f0739a3d9a9eca1591ae6bada1dd4d1d92c0def.tar.bz2 |
Add Search to the Settings App (initial release)
- add basic UI for search
- build the search Index thru sqlite FTS4 (faster than FTS3)
- create the search Index on the fly depending on the locale
- re-index if there is a configuration change
- re-index too if the Android build version has changed (usefull
for an Android OTA or when a new Android version is pushed as
we need to recompute the Index)
- search thru "title" and "summary" Preference's data
- group results in the same order of the Settings categories
into the Drawer
- rewrite "title" and/or "summary" if they are containing
an hyphen "\u2011"
- add Preference Keywords (only for the Settings App) in the
Index and allow search on them (Wi-Fi network preference is
used as an example)
Known restrictions:
- we cannot yet search for "dynamic settings"
- ... nor we cannot search for settings coming from an external App
(like the Phone App and its related settings that are surfacing
into the Settings App).
- will need a few other CLs to add more keywords (and have them translated)
Change-Id: I017a4d6c433f28c257c08cacc1bed98c4c517039
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/attrs.xml | 5 | ||||
-rw-r--r-- | res/values/colors.xml | 1 | ||||
-rw-r--r-- | res/values/strings.xml | 9 |
3 files changed, 14 insertions, 1 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml index fd28fa0..5bca063 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -83,4 +83,9 @@ </declare-styleable> <attr name="apnPreferenceStyle" format="reference" /> + + <!-- For Search --> + <declare-styleable name="Preference"> + <attr name="keywords" format="string" /> + </declare-styleable> </resources> diff --git a/res/values/colors.xml b/res/values/colors.xml index 352c7a2..c2ef388 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -17,6 +17,7 @@ <resources> <color name="background_drawer">@android:color/white</color> <color name="background_drawer_icon">#ffcccccc</color> + <color name="background_search_result_icon">#ffcccccc</color> <color name="black">#000</color> <color name="red">#F00</color> diff --git a/res/values/strings.xml b/res/values/strings.xml index eb0821b..e033955 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4998,7 +4998,14 @@ <!--Dashboard strings--> <!-- Text to describe the dashboard entry into the Drawer [CHAR LIMIT=16] --> <string name="dashboard_title">Overview</string> - <string name="dashboard_wip" translatable="false">Overview - work in progress\n\nUse the Drawer on the left to see the settings list</string> + <string name="dashboard_wip" translatable="false">Overview and Search are work in progress and Confidential\n\nDrag the Drawer on the left to see the settings list</string> + + <!-- Search strings --> + <!-- Text used as a search hint into the search box --> + <string name="query_hint_text">What are you looking for?</string> + + <!--Search Keywords--> + <string name="keywords_wifi">wifi wi-fi network connection</string> <!-- Notifications on lockscreen --> <!-- Label for checkbox controlling the contents of notifications shown on |