Fix order of playback controls in RTL layout

Issue: androidx/media#227

#minor-release

PiperOrigin-RevId: 497159283
This commit is contained in:
ibaker 2022-12-22 15:25:26 +00:00 committed by Marc Baechinger
parent 283cbcb464
commit 80603427ab
2 changed files with 5 additions and 1 deletions

View File

@ -33,6 +33,9 @@ Release notes
`PlayerView.setControllerVisibilityListener(PlayerControlView.VisibilityListener)` `PlayerView.setControllerVisibilityListener(PlayerControlView.VisibilityListener)`
to ensure visibility changes are passed to the registered listener to ensure visibility changes are passed to the registered listener
([#229](https://github.com/androidx/media/issues/229)). ([#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: * Session:
* Add abstract `SimpleBasePlayer` to help implement the `Player` interface * Add abstract `SimpleBasePlayer` to help implement the `Player` interface
for custom players. for custom players.

View File

@ -131,7 +131,8 @@
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:gravity="center" android:gravity="center"
android:padding="@dimen/exo_styled_controls_padding" android:padding="@dimen/exo_styled_controls_padding"
android:clipToPadding="false"> android:clipToPadding="false"
android:layoutDirection="ltr">
<ImageButton android:id="@id/exo_prev" <ImageButton android:id="@id/exo_prev"
style="@style/ExoStyledControls.Button.Center.Previous"/> style="@style/ExoStyledControls.Button.Center.Previous"/>