From 10ef1b084b2635f7c04caca041a198e8a239b85c Mon Sep 17 00:00:00 2001 From: Nicolas Pomepuy Date: Wed, 13 Nov 2024 13:41:14 +0100 Subject: [PATCH] Fix RTL for the audio player Fixes #3103 --- .../res/layout-land/audio_player.xml | 25 ++++++++++--------- .../vlc-android/res/layout/audio_player.xml | 25 ++++++++++--------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/application/vlc-android/res/layout-land/audio_player.xml b/application/vlc-android/res/layout-land/audio_player.xml index 09dfa45f8..173d67850 100644 --- a/application/vlc-android/res/layout-land/audio_player.xml +++ b/application/vlc-android/res/layout-land/audio_player.xml @@ -670,7 +670,7 @@ android:textColor="?attr/font_default" android:textSize="12sp" app:layout_constraintBottom_toTopOf="@+id/timeline" - app:layout_constraintStart_toStartOf="@+id/timeline" /> + app:layout_constraintLeft_toLeftOf="@+id/timeline" /> + app:layout_constraintRight_toRightOf="@+id/timeline" /> @@ -738,8 +739,8 @@ android:onClick="@{fragment::onPreviousClick}" android:padding="8dp" app:layout_constraintBottom_toBottomOf="@+id/play_pause" - app:layout_constraintEnd_toStartOf="@+id/play_pause" - app:layout_constraintStart_toEndOf="@+id/shuffle" + app:layout_constraintRight_toLeftOf="@+id/play_pause" + app:layout_constraintLeft_toRightOf="@+id/shuffle" app:layout_constraintTop_toTopOf="@+id/play_pause" app:srcCompat="@drawable/ic_previous" /> @@ -755,8 +756,8 @@ android:onLongClick="@{fragment::onStopClick}" android:padding="4dp" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toStartOf="@+id/next" - app:layout_constraintStart_toEndOf="@+id/previous" /> + app:layout_constraintRight_toLeftOf="@+id/next" + app:layout_constraintLeft_toRightOf="@+id/previous" /> @@ -791,8 +792,8 @@ android:onClick="@{fragment::onRepeatClick}" android:scaleType="fitXY" app:layout_constraintBottom_toBottomOf="@+id/play_pause" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toEndOf="@+id/next" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintLeft_toRightOf="@+id/next" app:layout_constraintTop_toTopOf="@+id/play_pause" app:srcCompat="@drawable/ic_repeat_audio" /> diff --git a/application/vlc-android/res/layout/audio_player.xml b/application/vlc-android/res/layout/audio_player.xml index ea9f746a3..576de68fe 100644 --- a/application/vlc-android/res/layout/audio_player.xml +++ b/application/vlc-android/res/layout/audio_player.xml @@ -561,7 +561,7 @@ android:textColor="?attr/font_default" android:textSize="12sp" app:layout_constraintBottom_toBottomOf="@+id/length" - app:layout_constraintStart_toStartOf="parent" + app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="@+id/length" /> + app:layout_constraintRight_toRightOf="parent" /> @@ -643,9 +644,9 @@ android:onClick="@{fragment::onPreviousClick}" android:padding="8dp" app:layout_constraintBottom_toBottomOf="@+id/play_pause" - app:layout_constraintEnd_toStartOf="@+id/play_pause" + app:layout_constraintRight_toLeftOf="@+id/play_pause" app:layout_constraintHorizontal_bias="0.5" - app:layout_constraintStart_toEndOf="@+id/shuffle" + app:layout_constraintLeft_toRightOf="@+id/shuffle" app:layout_constraintTop_toTopOf="@+id/play_pause" app:srcCompat="@drawable/ic_previous" /> @@ -662,9 +663,9 @@ android:onLongClick="@{fragment::onStopClick}" android:padding="4dp" app:layout_constraintBottom_toBottomOf="@+id/backgroundView" - app:layout_constraintEnd_toStartOf="@+id/next" + app:layout_constraintRight_toLeftOf="@+id/next" app:layout_constraintHorizontal_bias="0.5" - app:layout_constraintStart_toEndOf="@+id/previous" /> + app:layout_constraintLeft_toRightOf="@+id/previous" /> @@ -700,9 +701,9 @@ android:padding="8dp" android:scaleType="fitXY" app:layout_constraintBottom_toBottomOf="@+id/play_pause" - app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintRight_toRightOf="parent" app:layout_constraintHorizontal_bias="0.5" - app:layout_constraintStart_toEndOf="@+id/next" + app:layout_constraintLeft_toRightOf="@+id/next" app:layout_constraintTop_toTopOf="@+id/play_pause" app:srcCompat="@drawable/ic_repeat_audio" />