[Android] Fix TV player button focus state and order

Nicolas Pomepuy git at videolan.org
Thu Apr 23 09:56:16 CEST 2020


vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Apr 22 08:35:39 2020 +0200| [42bbf2538c8daf70a90b8a7fad67a57360dedc1d] | committer: Nicolas Pomepuy

Fix TV player button focus state and order

Fixes #1284

> https://code.videolan.org/videolan/vlc-android/commit/42bbf2538c8daf70a90b8a7fad67a57360dedc1d
---

 vlc-android/res/layout/tv_audio_player.xml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/vlc-android/res/layout/tv_audio_player.xml b/vlc-android/res/layout/tv_audio_player.xml
index e8e5eb246..1499ff115 100644
--- a/vlc-android/res/layout/tv_audio_player.xml
+++ b/vlc-android/res/layout/tv_audio_player.xml
@@ -117,9 +117,8 @@
                 android:clickable="true"
                 android:focusable="true"
                 android:padding="8dp"
-                android:nextFocusRight="@id/playlist"
-                android:nextFocusDown="@+id/button_shuffle"
-                app:background="@drawable/ic_circle_audio_player"
+                android:nextFocusRight="@+id/button_previous"
+                android:background="@drawable/ic_circle_audio_player"
                 android:onClick="onClick"
                 app:srcCompat="@drawable/ic_shuffle"
                 tools:src="@drawable/ic_shuffle"
@@ -137,7 +136,7 @@
                 android:focusable="true"
                 android:padding="8dp"
                 android:nextFocusDown="@+id/playlist"
-                app:background="@drawable/ic_circle_audio_player"
+                android:background="@drawable/ic_circle_audio_player"
                 android:onClick="onClick"
                 app:srcCompat="@drawable/ic_previous_player"
                 tools:src="@drawable/ic_previous"
@@ -156,7 +155,7 @@
                 android:focusable="true"
                 android:nextFocusDown="@+id/playlist"
                 app:layout_constraintTop_toBottomOf="@+id/media_progress"
-                app:background="@drawable/ic_circle_audio_player"
+                android:background="@drawable/ic_circle_audio_player"
                 android:onClick="onClick"
                 app:layout_constraintBottom_toBottomOf="parent"
                 tools:src="@drawable/ic_play"
@@ -176,7 +175,7 @@
                 android:focusable="true"
                 android:padding="8dp"
                 android:nextFocusDown="@+id/playlist"
-                app:background="@drawable/ic_circle_audio_player"
+                android:background="@drawable/ic_circle_audio_player"
                 android:onClick="onClick"
                 app:srcCompat="@drawable/ic_next_player"
                 tools:src="@drawable/ic_next"
@@ -194,7 +193,7 @@
                 android:clickable="true"
                 android:focusable="true"
                 android:nextFocusDown="@+id/playlist"
-                app:background="@drawable/ic_circle_audio_player"
+                android:background="@drawable/ic_circle_audio_player"
                 android:onClick="onClick"
                 android:padding="8dp"
                 tools:src="@drawable/ic_repeat"



More information about the Android mailing list