From 4a8890f37496bf669734772068b3d684007c42f9 Mon Sep 17 00:00:00 2001 From: linyuh Date: Wed, 16 May 2018 16:18:46 -0700 Subject: Implement accessibility for the new voicemail fragment. Bug: 70989658 Test: Manual PiperOrigin-RevId: 196907085 Change-Id: If3db2d6906245f052e756b315365b9d306f9d06d --- .../listui/res/layout/new_voicemail_entry.xml | 41 ++++++++++------------ .../res/layout/new_voicemail_entry_alert.xml | 5 ++- .../layout/new_voicemail_media_player_layout.xml | 6 +++- .../dialer/voicemail/listui/res/values/strings.xml | 29 +++++++++++++++ 4 files changed, 56 insertions(+), 25 deletions(-) (limited to 'java/com/android/dialer/voicemail/listui/res') diff --git a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml index 8dbe96117..b880e0ffc 100644 --- a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml +++ b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml @@ -17,23 +17,23 @@ - + @@ -42,9 +42,8 @@ style="@style/PrimaryText" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" - android:layout_marginEnd="6dp" android:layout_marginTop="14dp" + android:layout_marginEnd="6dp" android:ellipsize="end" android:lineSpacingMultiplier="1.5" android:singleLine="true"/> @@ -52,16 +51,18 @@ + android:orientation="horizontal" + tools:ignore="UseCompoundDrawables"> + tools:ignore="ContentDescription"/> - + android:visibility="gone"/> diff --git a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry_alert.xml b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry_alert.xml index 18a368647..c7029516b 100644 --- a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry_alert.xml +++ b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry_alert.xml @@ -18,6 +18,7 @@ + android:importantForAccessibility="no" + android:src="@drawable/ic_voicemail_error_24px" + tools:ignore="ContentDescription"/> @@ -81,6 +82,7 @@ android:id="@+id/playButton" style="@style/voicemail_media_player_buttons" android:layout_weight="1" + android:contentDescription="@string/a11y_voicemail_entry_play" android:src="@drawable/quantum_ic_play_arrow_vd_theme_24"/> @@ -88,6 +90,7 @@ android:id="@+id/speakerButton" style="@style/voicemail_media_player_buttons" android:layout_weight="1" + android:contentDescription="@string/a11y_voicemail_entry_speaker" android:src="@drawable/quantum_ic_volume_up_vd_theme_24"/> @@ -95,13 +98,14 @@ android:id="@+id/phoneButton" style="@style/voicemail_media_player_buttons" android:layout_weight="1" + android:contentDescription="@string/a11y_voicemail_entry_call" android:src="@drawable/quantum_ic_phone_vd_theme_24"/> - \ No newline at end of file diff --git a/java/com/android/dialer/voicemail/listui/res/values/strings.xml b/java/com/android/dialer/voicemail/listui/res/values/strings.xml index dc54daa19..bfa81f731 100644 --- a/java/com/android/dialer/voicemail/listui/res/values/strings.xml +++ b/java/com/android/dialer/voicemail/listui/res/values/strings.xml @@ -15,6 +15,35 @@ ~ limitations under the License --> + + Call number + + + Delete + + + + Expand menu for this voicemail entry + + + + Pause + + + Play + + + Speaker + Unknown -- cgit v1.2.3