From 1e315e47d642a61a8bd33f993bab1418a91ab1b0 Mon Sep 17 00:00:00 2001 From: insun Date: Thu, 8 Oct 2020 09:58:11 +0100 Subject: [PATCH] Expand bottom button's height and extend greyed background area to seekbar Adjusted the bottom layout of StyledPlayerControlView : - Enlarged bottom button's height to make tapping easier. - Extended greyed background area to upper edge of seekbar. - Gave padding between bottom edge of the overall layout and bottom buttons. - Reduced horizontal margins between bottom buttons. PiperOrigin-RevId: 336041160 --- RELEASENOTES.md | 16 ++++++++++------ .../layout/exo_styled_player_control_view.xml | 3 ++- library/ui/src/main/res/values/dimens.xml | 15 +++++++++------ library/ui/src/main/res/values/styles.xml | 10 ++++++---- 4 files changed, 27 insertions(+), 17 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 1f1bb38b99..c31a803c5e 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -15,6 +15,16 @@ ([#7985](https://github.com/google/ExoPlayer/issues/7985)). * Fix NPE in `TextRenderer` when playing content with a single subtitle buffer ([#8017](https://github.com/google/ExoPlayer/issues/8017)). +* UI: + * Do not require subtitleButton in custom layouts of StyledPlayerView + ([#7962](https://github.com/google/ExoPlayer/issues/7962)). + * Add the option to sort tracks by `Format` in `TrackSelectionView` and + `TrackSelectionDialogBuilder` + ([#7709](https://github.com/google/ExoPlayer/issues/7709)). + * Adjusted bottom buttons' heights and paddings in StyledPlayerView for + easy tapping. + * Show overflow button in `StyledPlayerControlView` only when there is no + enough space. * Audio: * Fix the default audio sink position not advancing correctly when using `AudioTrack`-based speed adjustment @@ -31,12 +41,6 @@ ([#7988](https://github.com/google/ExoPlayer/issues/7988)). * Ignore negative payload size in PES packets ([#8005](https://github.com/google/ExoPlayer/issues/8005)). -* UI - * Do not require subtitleButton in custom layouts of StyledPlayerView - ([#7962](https://github.com/google/ExoPlayer/issues/7962)). - * Add the option to sort tracks by `Format` in `TrackSelectionView` and - `TrackSelectionDialogBuilder` - ([#7709](https://github.com/google/ExoPlayer/issues/7709)). * HLS: * Fix crash affecting chunkful preparation of master playlists that start with an I-FRAME only variant diff --git a/library/ui/src/main/res/layout/exo_styled_player_control_view.xml b/library/ui/src/main/res/layout/exo_styled_player_control_view.xml index 3136f9d811..3fb8b98ce5 100644 --- a/library/ui/src/main/res/layout/exo_styled_player_control_view.xml +++ b/library/ui/src/main/res/layout/exo_styled_player_control_view.xml @@ -40,11 +40,12 @@ android:layout_height="@dimen/exo_bottom_bar_height" android:layout_gravity="bottom" android:background="@color/exo_bottom_bar_background" + android:paddingBottom="@dimen/exo_bottom_bar_padding_bottom" android:layoutDirection="ltr"> 8dp 52dp - 5dp + 5dp 2dp 9dp 18dp - 48dp - 32dp + 48dp + 48dp + 2dp 12dp - 4dp + 12dp 2dp 24dp - 40dp + 56dp - 32dp + 70dp + 4dp 10dp 170sp + 48dp 32dp 64dp diff --git a/library/ui/src/main/res/values/styles.xml b/library/ui/src/main/res/values/styles.xml index d86c3e5a39..03afddfdc5 100644 --- a/library/ui/src/main/res/values/styles.xml +++ b/library/ui/src/main/res/values/styles.xml @@ -61,8 +61,8 @@