summaryrefslogtreecommitdiff
path: root/java/com/android/newbubble/res/layout
diff options
context:
space:
mode:
authoryueg <yueg@google.com>2018-01-24 15:20:10 -0800
committerCopybara-Service <copybara-piper@google.com>2018-01-24 19:09:00 -0800
commit2a422f719b70f6c292b954fb24f324b7f4ac1858 (patch)
tree1b50f7d622a92ca868b23a498c5e1e9bf6d5dfa0 /java/com/android/newbubble/res/layout
parentc8dfaf1ea5a3b10a0592493b5138b9d29652fc50 (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/layout')
-rw-r--r--java/com/android/newbubble/res/layout/bottom_action_base.xml9
1 files changed, 6 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"