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">