diff options
author | linyuh <linyuh@google.com> | 2018-05-16 16:18:46 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-05-16 16:19:29 -0700 |
commit | 4a8890f37496bf669734772068b3d684007c42f9 (patch) | |
tree | 5bc78cfca0bf571b752c5fc48321f98a93f18a0e /java/com/android/dialer/widget | |
parent | b86b1a295178dc77d1b6b4af59d561d54c7469cf (diff) |
Implement accessibility for the new voicemail fragment.
Bug: 70989658
Test: Manual
PiperOrigin-RevId: 196907085
Change-Id: If3db2d6906245f052e756b315365b9d306f9d06d
Diffstat (limited to 'java/com/android/dialer/widget')
-rw-r--r-- | java/com/android/dialer/widget/res/layout/contact_photo_view.xml | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/java/com/android/dialer/widget/res/layout/contact_photo_view.xml b/java/com/android/dialer/widget/res/layout/contact_photo_view.xml index 0a8b80e02..320d06b98 100644 --- a/java/com/android/dialer/widget/res/layout/contact_photo_view.xml +++ b/java/com/android/dialer/widget/res/layout/contact_photo_view.xml @@ -28,32 +28,30 @@ android:layout_width="48dp" android:layout_height="48dp" android:layout_gravity="center" - android:padding="4dp" - android:focusable="true"/> + android:padding="4dp"/> <!-- A container layout that contains a background and badges (video call badge, RTT call badge, etc) The container and its children are too small to meet the accessibility requirement that the - touchable area of focusable items should be at least 48dp x 48dp. We have to set all of them - to be not focusable. + touchable area of focusable items should be at least 48dp x 48dp. We have to mark all of them + as not important for accessibility. --> <FrameLayout android:id="@+id/contact_badge_container" android:layout_width="22dp" android:layout_height="22dp" - android:layout_gravity="bottom|end" - android:layout_marginEnd="2dp" android:layout_marginBottom="2dp" - android:focusable="false"> + android:layout_marginEnd="2dp" + android:layout_gravity="bottom|end" + android:importantForAccessibility="noHideDescendants"> <ImageView android:id="@+id/contact_badge_background" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/contact_photo_badge_background" - android:focusable="false" tools:ignore="ContentDescription"/> <ImageView @@ -62,7 +60,6 @@ android:layout_height="13dp" android:layout_gravity="center" android:src="@drawable/quantum_ic_videocam_vd_white_24" - android:focusable="false" tools:ignore="ContentDescription"/> <ImageView @@ -70,9 +67,8 @@ android:layout_width="13dp" android:layout_height="13dp" android:layout_gravity="center" - android:tint="@android:color/white" android:src="@drawable/quantum_ic_rtt_vd_theme_24" - android:focusable="false" + android:tint="@android:color/white" tools:ignore="ContentDescription"/> </FrameLayout> </FrameLayout>
\ No newline at end of file |