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
This commit is contained in:
Fabrice Di Meglio
2014-03-21 19:24:43 -07:00
parent 5f3442af6f
commit d25314d330
19 changed files with 1213 additions and 1148 deletions

View File

@@ -4988,20 +4988,17 @@
<string name="enable_nfc">NFC is not enabled and is required for NFC Unlock. Please turn on NFC.</string>
<string name="ok">NFC Settings</string>
<!--Drawer strings-->
<!-- Text to describe the "open drawer" action for accessibility purpose [CHAR LIMIT=50] -->
<string name="drawer_open">Open navigation drawer</string>
<!-- Text to describe the "close drawer" action for accessibility purpose [CHAR LIMIT=50] -->
<string name="drawer_close">Close navigation drawer</string>
<!--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 and Search are work in progress and Confidential\n\nDrag the Drawer on the left to see the settings list</string>
<!-- Text to describe the dashboard fragment title [CHAR LIMIT=16] -->
<string name="dashboard_title">Settings</string>
<!-- Search strings -->
<!-- Text to describe the search results fragment title [CHAR LIMIT=16] -->
<string name="search_results_title">Settings</string>
<!-- Text used as a search hint into the search box -->
<string name="query_hint_text">What are you looking for?</string>
<string name="search_menu">Search</string>
<!-- Text used as a search hint into the search box -->
<string name="query_hint_text">Search settings</string>
<!--Search Keywords-->
<string name="keywords_wifi">wifi wi-fi network connection</string>