Skip to content

Commit

Permalink
Fix order of playback controls in RTL layout
Browse files Browse the repository at this point in the history
Issue: #227

#minor-release

PiperOrigin-RevId: 497159283
  • Loading branch information
icbaker authored and marcbaechinger committed Jan 4, 2023
1 parent 283cbcb commit 8060342
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion libraries/ui/src/main/res/layout/exo_player_control_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">

<ImageButton android:id="@id/exo_prev"
style="@style/ExoStyledControls.Button.Center.Previous"/>
Expand Down

0 comments on commit 8060342

Please sign in to comment.