[Android] Try to force the focus order on audio/subtitle delay
Nicolas Pomepuy
git at videolan.org
Tue Jul 7 13:16:03 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jul 6 11:55:14 2020 +0200| [6234c038f3306a43d0c7d7abb7d978951051c477] | committer: Nicolas Pomepuy
Try to force the focus order on audio/subtitle delay
Fixes #1403
> https://code.videolan.org/videolan/vlc-android/commit/6234c038f3306a43d0c7d7abb7d978951051c477
---
application/vlc-android/res/layout/player_overlay_settings.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/application/vlc-android/res/layout/player_overlay_settings.xml b/application/vlc-android/res/layout/player_overlay_settings.xml
index d5310686d..0e65a6495 100644
--- a/application/vlc-android/res/layout/player_overlay_settings.xml
+++ b/application/vlc-android/res/layout/player_overlay_settings.xml
@@ -45,6 +45,7 @@
android:focusable="true"
android:padding="0dp"
android:visibility="invisible"
+ android:nextFocusRight="@+id/player_delay_plus"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/delay_textinfo"
app:layout_constraintHorizontal_bias="0.5"
@@ -79,6 +80,7 @@
android:focusable="true"
android:padding="0dp"
android:visibility="invisible"
+ android:nextFocusLeft="@+id/player_delay_minus"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
@@ -97,6 +99,7 @@
android:textColor="@color/white"
app:backgroundTint="@color/player_delay_button_background_tint"
app:icon="@drawable/ic_delay_done"
+ android:nextFocusRight="@+id/delay_second_button"
app:iconTint="@color/grey400transparent"
app:layout_constraintEnd_toStartOf="@+id/delay_second_button"
app:layout_constraintTop_toBottomOf="@+id/delay_info_container" />
@@ -111,6 +114,8 @@
app:backgroundTint="@color/player_delay_button_background_tint"
app:icon="@drawable/ic_delay_done"
app:iconTint="@color/grey400transparent"
+ android:nextFocusLeft="@+id/delay_first_button"
+ android:nextFocusRight="@+id/delay_reset_button"
app:layout_constraintEnd_toStartOf="@+id/delay_reset_button"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintTop_toBottomOf="@+id/delay_info_container" />
@@ -121,6 +126,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reset"
+ android:nextFocusLeft="@+id/delay_second_button"
android:textColor="@color/white"
app:backgroundTint="@color/player_delay_button_background_tint"
app:iconTint="@color/grey400transparent"
More information about the Android
mailing list