diff options
author | yueg <yueg@google.com> | 2018-01-24 15:20:10 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-01-24 19:09:00 -0800 |
commit | 2a422f719b70f6c292b954fb24f324b7f4ac1858 (patch) | |
tree | 1b50f7d622a92ca868b23a498c5e1e9bf6d5dfa0 /java/com/android/newbubble/res | |
parent | c8dfaf1ea5a3b10a0592493b5138b9d29652fc50 (diff) |
Bubble v2 a11y.
- Set checkable for bubble buttons so the check status of non checkable button (back to call, end call) is not read.
- Add support for bottom action buttons.
Test: manual
PiperOrigin-RevId: 183150371
Change-Id: Ifae9c912ec923e8d2cda3146413138bd2eb94b47
Diffstat (limited to 'java/com/android/newbubble/res')
-rw-r--r-- | java/com/android/newbubble/res/layout/bottom_action_base.xml | 9 | ||||
-rw-r--r-- | java/com/android/newbubble/res/values/strings.xml | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/java/com/android/newbubble/res/layout/bottom_action_base.xml b/java/com/android/newbubble/res/layout/bottom_action_base.xml index 8f7ba753e..b4d7c891e 100644 --- a/java/com/android/newbubble/res/layout/bottom_action_base.xml +++ b/java/com/android/newbubble/res/layout/bottom_action_base.xml @@ -20,7 +20,8 @@ android:weightSum="2" android:orientation="horizontal" android:gravity="center" - android:background="@drawable/bottom_action_scrim"> + android:background="@drawable/bottom_action_scrim" + android:contentDescription="@string/a11y_bubble_bottom_action_description"> <!-- Add space to make sure text is not off screen when scaled. (1 - 1/1.3) / 2 ~= 0.11 --> <View @@ -33,7 +34,8 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.78" - android:gravity="center"> + android:gravity="center" + android:contentDescription="@string/bubble_bottom_action_hide"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -60,7 +62,8 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.78" - android:gravity="center"> + android:gravity="center" + android:contentDescription="@string/bubble_bottom_action_end_call"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" diff --git a/java/com/android/newbubble/res/values/strings.xml b/java/com/android/newbubble/res/values/strings.xml index 08c685ee2..7ef61cecc 100644 --- a/java/com/android/newbubble/res/values/strings.xml +++ b/java/com/android/newbubble/res/values/strings.xml @@ -18,6 +18,8 @@ <resources> <!-- A string for Talkback to read when accessibility user touch bubble. --> <string name="a11y_bubble_description">Dialer bubble</string> + <!-- A string to describe bubble bottom actions for accessibility user. --> + <string name="a11y_bubble_bottom_action_description">Bottom action buttons</string> <!-- A string to describe available action for accessibility user. It will be read as "Actions: double tap to expand call action menu". --> <string name="a11y_bubble_primary_button_expand_action">Expand call action menu</string> |