diff options
author | Alan Viverette <alanv@google.com> | 2014-11-19 23:52:20 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-19 23:52:24 +0000 |
commit | b130d5961cb154e8821cfa42fdd820d67497d84d (patch) | |
tree | 2d8946e0179d2e589e766eb263b53e95d84d59d0 /core/res | |
parent | 552eca1a713ab8f6c60d6ec0d350ef33813cd25b (diff) | |
parent | cb8ed3705cd8f50d43ff4a0c5d91d545f28add7a (diff) | |
download | frameworks_base-b130d5961cb154e8821cfa42fdd820d67497d84d.zip frameworks_base-b130d5961cb154e8821cfa42fdd820d67497d84d.tar.gz frameworks_base-b130d5961cb154e8821cfa42fdd820d67497d84d.tar.bz2 |
Merge "Remove underline and search icon from ActionBar search view" into lmp-mr1-dev
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/values/attrs.xml | 2 | ||||
-rw-r--r-- | core/res/res/values/public.xml | 1 | ||||
-rw-r--r-- | core/res/res/values/strings.xml | 2 | ||||
-rw-r--r-- | core/res/res/values/styles_holo.xml | 1 | ||||
-rw-r--r-- | core/res/res/values/styles_material.xml | 9 | ||||
-rw-r--r-- | core/res/res/values/themes_material.xml | 2 |
6 files changed, 17 insertions, 0 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 3a4da70..403fd99 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -7220,6 +7220,8 @@ <attr name="goIcon" format="reference" /> <!-- Search icon --> <attr name="searchIcon" format="reference" /> + <!-- Search icon displayed as a text field hint --> + <attr name="searchHintIcon" format="reference" /> <!-- Voice button icon --> <attr name="voiceIcon" format="reference" /> <!-- Commit icon shown in the query suggestion row --> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index c661c33..c01d406 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -2600,5 +2600,6 @@ <public type="attr" name="accessibilityTraversalBefore" /> <public type="attr" name="accessibilityTraversalAfter" /> <public type="attr" name="dialogPreferredPadding" /> + <public type="attr" name="searchHintIcon" /> </resources> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index bc7f172..4500e3d 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -3306,6 +3306,8 @@ <!-- This is the default button label in the system-wide search UI. It is also used by the home screen's search "widget". It should be short --> <string name="search_go">Search</string> + <!-- Default hint text for the system-wide search UI's text field. [CHAR LIMIT=30] --> + <string name="search_hint">Search…</string> <!-- SearchView accessibility description for search button [CHAR LIMIT=NONE] --> <string name="searchview_description_search">Search</string> <!-- SearchView accessibility description for search text field [CHAR LIMIT=NONE] --> diff --git a/core/res/res/values/styles_holo.xml b/core/res/res/values/styles_holo.xml index d224c3a..41b8b25 100644 --- a/core/res/res/values/styles_holo.xml +++ b/core/res/res/values/styles_holo.xml @@ -358,6 +358,7 @@ please see styles_device_defaults.xml. <item name="submitBackground">@drawable/textfield_searchview_right_holo_dark</item> <item name="closeIcon">@drawable/ic_clear_holo_dark</item> <item name="searchIcon">@drawable/ic_search_api_holo_dark</item> + <item name="searchHintIcon">@drawable/ic_search_api_holo_dark</item> <item name="goIcon">@drawable/ic_go_search_api_holo_dark</item> <item name="voiceIcon">@drawable/ic_voice_search_api_holo_dark</item> <item name="commitIcon">@drawable/ic_commit_search_api_holo_dark</item> diff --git a/core/res/res/values/styles_material.xml b/core/res/res/values/styles_material.xml index 728f3d0..6749441 100644 --- a/core/res/res/values/styles_material.xml +++ b/core/res/res/values/styles_material.xml @@ -517,12 +517,20 @@ please see styles_device_defaults.xml. <item name="submitBackground">@drawable/textfield_search_material</item> <item name="closeIcon">@drawable/ic_clear_material</item> <item name="searchIcon">@drawable/ic_search_api_material</item> + <item name="searchHintIcon">@drawable/ic_search_api_material</item> <item name="goIcon">@drawable/ic_go_search_api_material</item> <item name="voiceIcon">@drawable/ic_voice_search_api_material</item> <item name="commitIcon">@drawable/ic_commit_search_api_material</item> <item name="suggestionRowLayout">@layout/search_dropdown_item_icons_2line</item> </style> + <style name="Widget.Material.SearchView.ActionBar"> + <item name="queryBackground">@empty</item> + <item name="submitBackground">@empty</item> + <item name="searchHintIcon">@empty</item> + <item name="queryHint">@string/search_hint</item> + </style> + <style name="Widget.Material.SegmentedButton" parent="SegmentedButton"> <item name="background">@drawable/btn_group_holo_dark</item> </style> @@ -962,6 +970,7 @@ please see styles_device_defaults.xml. <style name="Widget.Material.Light.ButtonBar" parent="Widget.Material.ButtonBar"/> <style name="Widget.Material.Light.ButtonBar.AlertDialog" parent="Widget.Material.ButtonBar.AlertDialog"/> <style name="Widget.Material.Light.SearchView" parent="Widget.Material.SearchView"/> + <style name="Widget.Material.Light.SearchView.ActionBar" parent="Widget.Material.SearchView.ActionBar"/> <style name="Widget.Material.Light.SegmentedButton" parent="Widget.Material.SegmentedButton"> <item name="background">@drawable/btn_group_holo_light</item> diff --git a/core/res/res/values/themes_material.xml b/core/res/res/values/themes_material.xml index b320ae5..3f2062d 100644 --- a/core/res/res/values/themes_material.xml +++ b/core/res/res/values/themes_material.xml @@ -828,6 +828,7 @@ please see themes_device_defaults.xml. secondary text color, with the primary text color. --> <style name="ThemeOverlay.Material.ActionBar"> <item name="colorControlNormal">?attr/textColorPrimary</item> + <item name="searchViewStyle">@style/Widget.Material.Light.SearchView.ActionBar</item> </style> <!-- Theme overlay that replaces colors with their dark versions and replaces the normal @@ -835,6 +836,7 @@ please see themes_device_defaults.xml. text color. --> <style name="ThemeOverlay.Material.Dark.ActionBar"> <item name="colorControlNormal">?attr/textColorPrimary</item> + <item name="searchViewStyle">@style/Widget.Material.SearchView.ActionBar</item> </style> <!-- Variant of the material (dark) theme with no action bar. --> |