diff options
| -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> |