From 80603427abbd0da09f21e381cc10a5d47fb6d780 Mon Sep 17 00:00:00 2001 From: ibaker Date: Thu, 22 Dec 2022 15:25:26 +0000 Subject: [PATCH] Fix order of playback controls in RTL layout Issue: androidx/media#227 #minor-release PiperOrigin-RevId: 497159283 --- RELEASENOTES.md | 3 +++ libraries/ui/src/main/res/layout/exo_player_control_view.xml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 41a12d159d..927a1be2ad 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -33,6 +33,9 @@ Release notes `PlayerView.setControllerVisibilityListener(PlayerControlView.VisibilityListener)` to ensure visibility changes are passed to the registered listener ([#229](https://github.com/androidx/media/issues/229)). + * Fix the ordering of the center player controls in `PlayerView` when + using a right-to-left (RTL) layout + ([#227](https://github.com/androidx/media/issues/227)). * Session: * Add abstract `SimpleBasePlayer` to help implement the `Player` interface for custom players. diff --git a/libraries/ui/src/main/res/layout/exo_player_control_view.xml b/libraries/ui/src/main/res/layout/exo_player_control_view.xml index 0a5ad9a21d..c412079eb5 100644 --- a/libraries/ui/src/main/res/layout/exo_player_control_view.xml +++ b/libraries/ui/src/main/res/layout/exo_player_control_view.xml @@ -131,7 +131,8 @@ android:background="@android:color/transparent" android:gravity="center" android:padding="@dimen/exo_styled_controls_padding" - android:clipToPadding="false"> + android:clipToPadding="false" + android:layoutDirection="ltr">