[Android] Fix overlay length and time positions in RTL mode

Habib Kazemi git at videolan.org
Wed Jan 20 09:54:27 UTC 2021


vlc-android | branch: 3.3.x | Habib Kazemi <kazemihabib1996 at gmail.com> | Wed Dec 30 11:14:36 2020 +0330| [fce9f6486917ce9ff35a570c3269dad07abfdba2] | committer: Nicolas Pomepuy

Fix overlay length and time positions in RTL mode

Fixes #1578 problem 4

(cherry picked from commit be2c207d8b0f607d5db7efaf0d494382cfd68076)

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

 application/vlc-android/res/layout/player_hud.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/res/layout/player_hud.xml b/application/vlc-android/res/layout/player_hud.xml
index b625d0f83..e5a3e5ff6 100644
--- a/application/vlc-android/res/layout/player_hud.xml
+++ b/application/vlc-android/res/layout/player_hud.xml
@@ -191,7 +191,7 @@
                     android:layout_height="wrap_content"
                     android:layout_marginStart="24dp"
                     vlc:layout_constraintHorizontal_chainStyle="spread_inside"
-                    vlc:layout_constraintStart_toStartOf="parent"
+                    vlc:layout_constraintLeft_toLeftOf="parent"
                     vlc:layout_constraintTop_toTopOf="parent">
 
                 <TextView
@@ -212,7 +212,7 @@
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:layout_marginEnd="24dp"
-                    vlc:layout_constraintEnd_toEndOf="parent"
+                    vlc:layout_constraintRight_toRightOf="parent"
                     vlc:layout_constraintTop_toTopOf="parent">
 
                 <TextView



More information about the Android mailing list