From 8a13f241e4b9ebf38eb5ecde4037d5092fb24928 Mon Sep 17 00:00:00 2001 From: FongMi Date: Wed, 27 Jul 2022 22:57:08 +0800 Subject: [PATCH] Fix controller focus --- app/src/main/res/layout/view_controller_bottom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/res/layout/view_controller_bottom.xml b/app/src/main/res/layout/view_controller_bottom.xml index 94cf02630..ce389dcc6 100644 --- a/app/src/main/res/layout/view_controller_bottom.xml +++ b/app/src/main/res/layout/view_controller_bottom.xml @@ -36,6 +36,7 @@ android:background="@drawable/selector_text" android:focusable="true" android:focusableInTouchMode="true" + android:nextFocusLeft="@id/next" android:nextFocusDown="@id/exo_progress" android:text="@string/play_next" android:textColor="@color/white" /> @@ -100,6 +101,8 @@ android:background="@drawable/selector_text" android:focusable="true" android:focusableInTouchMode="true" + android:nextFocusRight="@id/scale" + android:nextFocusDown="@id/exo_progress" android:textColor="@color/white" tools:text="預設" /> @@ -130,7 +133,10 @@ android:layout_weight="1" android:focusable="true" android:focusableInTouchMode="true" + android:nextFocusLeft="@id/exo_progress" + android:nextFocusRight="@id/exo_progress" android:nextFocusUp="@+id/next" + android:nextFocusDown="@id/exo_progress" app:buffered_color="@color/grey_700" app:played_color="@color/blue_700" app:scrubber_color="@color/blue_500"