ContentDescription for transparent area above QC
For TalkBack support.
Change-Id: I7e7c5f7e83af25a5d37c612d07d4d09a8d58d464
diff --git a/res/layout-land/quickcontact_activity.xml b/res/layout-land/quickcontact_activity.xml
index 65fcd7d..9a07698 100644
--- a/res/layout-land/quickcontact_activity.xml
+++ b/res/layout-land/quickcontact_activity.xml
@@ -26,6 +26,7 @@
<View
android:layout_width="match_parent"
android:layout_height="@dimen/quickcontact_starting_empty_height"
+ android:contentDescription="@string/quickcontact_transparent_view_description"
android:id="@+id/transparent_view" />
<LinearLayout
diff --git a/res/layout/quickcontact_activity.xml b/res/layout/quickcontact_activity.xml
index 7b81ea2..008062b 100644
--- a/res/layout/quickcontact_activity.xml
+++ b/res/layout/quickcontact_activity.xml
@@ -27,6 +27,7 @@
<View
android:layout_width="match_parent"
android:layout_height="@dimen/quickcontact_starting_empty_height"
+ android:contentDescription="@string/quickcontact_transparent_view_description"
android:id="@+id/transparent_view" />
<include layout="@layout/quickcontact_header" />
diff --git a/res/values/strings.xml b/res/values/strings.xml
index afd0f40..434a62b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -309,6 +309,9 @@
<!-- Shown as a toast when the user taps on a QuickContact icon, and no application
was found that could perform the selected action. [CHAR LIMIT=NONE] -->
<string name="quickcontact_missing_app">No app was found to handle this action.</string>
+ <!-- Content description for the transparent view above the visible section of QuickContacts.
+ Clicking this view causes Quick Contacts to close. [CHAR LIMIT=NONE] -->
+ <string name="quickcontact_transparent_view_description">Click to return to previous screen</string>
<!-- Shown as a toast when the user attempts an action (add contact, edit
contact, etc) and no application was found that could perform that