OSDN Git Service

Disable accessibility focus on the instruction video in magnification
authorNoah Wang <nfw@google.com>
Wed, 14 Sep 2016 23:40:05 +0000 (16:40 -0700)
committerNoah Wang <nfw@google.com>
Thu, 15 Sep 2016 17:27:49 +0000 (10:27 -0700)
gesture screen.

Test: Manually built and tested with Bullhead
Bug: 30898790
Change-Id: I399e2b9be33ebf6dd5100705eb5f2ba5c5cc98b1

res/layout/video_preference.xml

index 5f7116d..fe7f26f 100644 (file)
         android:layout_height="wrap_content"
         android:src="@drawable/accessibility_screen_magnification_background"
         android:scaleType="fitXY"
-        android:adjustViewBounds="true" />
+        android:adjustViewBounds="true"
+        android:importantForAccessibility="noHideDescendants" />
 
     <VideoView
         android:id="@+id/video"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_alignTop="@id/video_background"
-        android:layout_centerHorizontal="true" />
+        android:layout_centerHorizontal="true"
+        android:importantForAccessibility="noHideDescendants" />
 
 </RelativeLayout>
\ No newline at end of file