Update Styled Player settings dialogs to respect RTL.

PiperOrigin-RevId: 342672124
This commit is contained in:
olly 2020-11-16 18:52:57 +00:00 committed by Ian Baker
parent 1f49867746
commit bb8a2de37d
3 changed files with 7 additions and 0 deletions

View file

@ -18,6 +18,7 @@
([#7882](https://github.com/google/ExoPlayer/issues/7882)).
* 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`

View file

@ -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">
<ImageView
@ -38,6 +39,7 @@
android:paddingEnd="4dp"
android:paddingRight="4dp"
android:gravity="center|start"
android:layoutDirection="locale"
android:orientation="vertical">
<TextView
@ -45,6 +47,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/exo_white"
android:textDirection="locale"
android:textSize="@dimen/exo_settings_main_text_size"/>
<TextView
@ -52,6 +55,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/exo_white_opacity_70"
android:textDirection="locale"
android:textSize="@dimen/exo_settings_sub_text_size"/>
</LinearLayout>
</LinearLayout>

View file

@ -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">
<ImageView
@ -40,5 +41,6 @@
android:layout_marginRight="4dp"
android:gravity="center|start"
android:textColor="@color/exo_white"
android:textDirection="locale"
android:textSize="@dimen/exo_settings_main_text_size"/>
</LinearLayout>