summaryrefslogtreecommitdiff
path: root/java/com/android/newbubble/res
diff options
context:
space:
mode:
authoryueg <yueg@google.com>2017-12-13 14:13:57 -0800
committerCopybara-Service <copybara-piper@google.com>2017-12-13 14:14:55 -0800
commita235e13a46c06741ee8634c5d8d1d4766e916ccc (patch)
treee554e5dbe03ed00dbef1d09bcafeddf4388d37e1 /java/com/android/newbubble/res
parente85ca463bb17d0daeed1d3541a1b20fd842de3bc (diff)
Bubble v2 accessibility.
Add description and action for primary button and expanded view action buttons. Bug: 67605985 Test: manual PiperOrigin-RevId: 178955927 Change-Id: I43ad24334cb1e1676cbc390cdba5465ded1464b5
Diffstat (limited to 'java/com/android/newbubble/res')
-rw-r--r--java/com/android/newbubble/res/layout/new_bubble_base.xml1
-rw-r--r--java/com/android/newbubble/res/values/strings.xml27
2 files changed, 28 insertions, 0 deletions
diff --git a/java/com/android/newbubble/res/layout/new_bubble_base.xml b/java/com/android/newbubble/res/layout/new_bubble_base.xml
index 8d4771631..216dce0d2 100644
--- a/java/com/android/newbubble/res/layout/new_bubble_base.xml
+++ b/java/com/android/newbubble/res/layout/new_bubble_base.xml
@@ -38,6 +38,7 @@
android:layout_marginEnd="@dimen/bubble_shadow_padding_size_horizontal"
android:layout_marginTop="@dimen/bubble_shadow_padding_size_vertical"
android:layout_marginBottom="@dimen/bubble_shadow_padding_size_vertical"
+ android:contentDescription="@string/a11y_bubble_description"
android:background="@drawable/bubble_shape_circle"
android:measureAllChildren="false"
android:elevation="@dimen/bubble_elevation"
diff --git a/java/com/android/newbubble/res/values/strings.xml b/java/com/android/newbubble/res/values/strings.xml
new file mode 100644
index 000000000..5b82b181f
--- /dev/null
+++ b/java/com/android/newbubble/res/values/strings.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2017 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+
+<resources>
+ <!-- A string for Talkback to read when accessibility user touch bubble. -->
+ <string name="a11y_bubble_description">Dialer bubble</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>
+ <!-- A string to describe available action for accessibility user. It will be read as "Actions:
+ double tap to collapse call action menu". -->
+ <string name="a11y_bubble_primary_button_collapse_action">Collapse call action menu</string>
+</resources> \ No newline at end of file