From 8381b9ff43f0ce61f93a54526fa9b84b9abfd8ff Mon Sep 17 00:00:00 2001 From: olly Date: Mon, 16 Nov 2020 18:52:57 +0000 Subject: [PATCH] Update Styled Player settings dialogs to respect RTL. PiperOrigin-RevId: 342672124 --- RELEASENOTES.md | 1 + .../ui/src/main/res/layout/exo_styled_settings_list_item.xml | 4 ++++ .../src/main/res/layout/exo_styled_sub_settings_list_item.xml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 1b558a8b6e..f33f963af0 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -39,6 +39,7 @@ * Switch `StyledPlayerControlView` button controls to borderless ripples. * Add `bar_gravity` attribute into `DefaultTimeBar`. * Increase seekbar's touch target height in `StyledPlayerControlView`. + * Update Styled Player settings dialogs to respect RTL. * Audio: * Retry playback after some types of `AudioTrack` error. * Work around `AudioManager` crashes when calling `getStreamVolume` diff --git a/library/ui/src/main/res/layout/exo_styled_settings_list_item.xml b/library/ui/src/main/res/layout/exo_styled_settings_list_item.xml index b7dc40120a..9fe6651b37 100644 --- a/library/ui/src/main/res/layout/exo_styled_settings_list_item.xml +++ b/library/ui/src/main/res/layout/exo_styled_settings_list_item.xml @@ -19,6 +19,7 @@ android:minWidth="@dimen/exo_setting_width" android:minHeight="@dimen/exo_settings_height" android:background="?android:attr/selectableItemBackground" + android:layoutDirection="locale" android:orientation="horizontal"> diff --git a/library/ui/src/main/res/layout/exo_styled_sub_settings_list_item.xml b/library/ui/src/main/res/layout/exo_styled_sub_settings_list_item.xml index 9d184f3bbe..7f2a42b506 100644 --- a/library/ui/src/main/res/layout/exo_styled_sub_settings_list_item.xml +++ b/library/ui/src/main/res/layout/exo_styled_sub_settings_list_item.xml @@ -19,6 +19,7 @@ android:minWidth="@dimen/exo_setting_width" android:minHeight="@dimen/exo_settings_height" android:background="?android:attr/selectableItemBackground" + android:layoutDirection="locale" android:orientation="horizontal">