OSDN Git Service

Fix talkback issue which focus on entire grid
authorYanting Yang <yantingyang@google.com>
Mon, 1 Apr 2019 10:13:17 +0000 (18:13 +0800)
committerYanting Yang <yantingyang@google.com>
Mon, 1 Apr 2019 10:38:42 +0000 (18:38 +0800)
When there is only one condition card, sometimes talkback will focus on
entire grid. In fact, the entire grid is a recycler view which is the
container to put all contextual cards. Mark the recycler view with no
important for accessibility to fix it.

Fixes: 128896302
Test: visual
Change-Id: I177fa014ec3208001b3a490dbdf9b6b6195985ea

res/layout/settings_homepage.xml

index 6e2b302..5710bac 100644 (file)
@@ -25,6 +25,7 @@
         android:id="@+id/card_container"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:layoutAnimation="@anim/layout_animation_fade_in"/>
+        android:layoutAnimation="@anim/layout_animation_fade_in"
+        android:importantForAccessibility="no"/>
 
 </LinearLayout>