[Android] Fix TV player button focus state and order
Nicolas Pomepuy
git at videolan.org
Fri Apr 24 11:07:57 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Apr 22 08:35:39 2020 +0200| [03747856e84e4e72fb969f80cf75ef230378ba60] | committer: Geoffrey Métais
Fix TV player button focus state and order
Fixes #1284
> https://code.videolan.org/videolan/vlc-android/commit/03747856e84e4e72fb969f80cf75ef230378ba60
---
.../television/src/main/res/layout/tv_audio_player.xml | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/application/television/src/main/res/layout/tv_audio_player.xml b/application/television/src/main/res/layout/tv_audio_player.xml
index e8e5eb246..1499ff115 100644
--- a/application/television/src/main/res/layout/tv_audio_player.xml
+++ b/application/television/src/main/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