diff options
| author | 2011-08-15 16:19:49 -0700 | |
|---|---|---|
| committer | 2011-08-15 16:19:49 -0700 | |
| commit | 616365e04cb2ef47d4b3183d3b74c4c63bc2f35c (patch) | |
| tree | 16ef1b9aff79b0c8f93cbc26ec57c45cf9f34c94 | |
| parent | 154aa355f0ed0374a4b4db222419639ec1a385fe (diff) | |
Accessibility strings for search view components.
Bug: 5128699
Change-Id: I5177a672aa68edd25d7aeb8be9dc030a9f6c60c9
| -rw-r--r-- | core/res/res/layout/search_view.xml | 5 | ||||
| -rwxr-xr-x | core/res/res/values/strings.xml | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/core/res/res/layout/search_view.xml b/core/res/res/layout/search_view.xml index 6b70d8dc42f7..03e870611f0f 100644 --- a/core/res/res/layout/search_view.xml +++ b/core/res/res/layout/search_view.xml @@ -48,6 +48,7 @@ android:background="?android:attr/selectableItemBackground" android:src="?android:attr/searchViewSearchIcon" style="?android:attr/actionButtonStyle" + android:contentDescription="@string/searchview_description_search" /> <LinearLayout @@ -99,6 +100,7 @@ android:dropDownAnchor="@id/search_edit_frame" android:dropDownVerticalOffset="0dip" android:dropDownHorizontalOffset="0dip" + android:contentDescription="@string/searchview_description_query" /> <ImageView @@ -111,6 +113,7 @@ android:background="?android:attr/selectableItemBackground" android:src="?android:attr/searchViewCloseIcon" android:focusable="true" + android:contentDescription="@string/searchview_description_clear" /> </LinearLayout> @@ -133,6 +136,7 @@ android:src="?android:attr/searchViewGoIcon" android:visibility="gone" android:focusable="true" + android:contentDescription="@string/searchview_description_submit" /> <ImageView @@ -146,6 +150,7 @@ android:background="?android:attr/selectableItemBackground" android:visibility="gone" android:focusable="true" + android:contentDescription="@string/searchview_description_voice" /> </LinearLayout> </LinearLayout> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 7d6d25c840e4..ed4fbd16c0de 100755 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -2212,6 +2212,16 @@ <!-- 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> + <!-- 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] --> + <string name="searchview_description_query">Search query</string> + <!-- SearchView accessibility description for clear button [CHAR LIMIT=NONE] --> + <string name="searchview_description_clear">Clear query</string> + <!-- SearchView accessibility description for submit button [CHAR LIMIT=NONE] --> + <string name="searchview_description_submit">Submit query</string> + <!-- SearchView accessibility description for voice button [CHAR LIMIT=NONE] --> + <string name="searchview_description_voice">Voice search</string> <!-- String used to display the date. This is the string to say something happened 1 month ago. --> <string name="oneMonthDurationPast">1 month ago</string> |