From b16cf5941ed88ea9694f7838d79bfad79e816dba Mon Sep 17 00:00:00 2001 From: olly Date: Fri, 20 Nov 2020 19:32:32 +0000 Subject: [PATCH] Rollback of https://github.com/google/ExoPlayer/commit/8d84a50fa1c86f730105cd648bb2454f365830d4 *** Original commit *** Update Styled non bottom buttons to be borderless. This requires the parent of the background to draw and have padding large enough to support the size of the ripple. The bottom buttons must remained bordered as the space around them is constrained. *** PiperOrigin-RevId: 343531411 --- RELEASENOTES.md | 1 - .../exo_ripple_ffwd.xml} | 14 ++++++++++---- ...round_borderless.xml => exo_ripple_rew.xml} | 14 ++++++++++---- .../src/main/res/drawable/exo_ripple_ffwd.xml | 18 +++++++++++++----- .../src/main/res/drawable/exo_ripple_rew.xml | 18 +++++++++++++----- .../exo_styled_embedded_transport_controls.xml | 2 -- library/ui/src/main/res/values/colors.xml | 2 ++ library/ui/src/main/res/values/styles.xml | 3 +-- 8 files changed, 49 insertions(+), 23 deletions(-) rename library/ui/src/main/res/{drawable/exo_selectable_item_background_borderless.xml => drawable-v21/exo_ripple_ffwd.xml} (63%) rename library/ui/src/main/res/drawable-v21/{exo_selectable_item_background_borderless.xml => exo_ripple_rew.xml} (63%) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 5ed1dfd44f..9c0f2962fc 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -48,7 +48,6 @@ `LeanbackPlayerAdapter` and use `ControlDispatcher` for dispatching prepare instead ([#7882](https://github.com/google/ExoPlayer/issues/7882)). - * 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. diff --git a/library/ui/src/main/res/drawable/exo_selectable_item_background_borderless.xml b/library/ui/src/main/res/drawable-v21/exo_ripple_ffwd.xml similarity index 63% rename from library/ui/src/main/res/drawable/exo_selectable_item_background_borderless.xml rename to library/ui/src/main/res/drawable-v21/exo_ripple_ffwd.xml index 7a267a0a52..5e4dd5550f 100644 --- a/library/ui/src/main/res/drawable/exo_selectable_item_background_borderless.xml +++ b/library/ui/src/main/res/drawable-v21/exo_ripple_ffwd.xml @@ -14,7 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - + + + + + + + + diff --git a/library/ui/src/main/res/drawable-v21/exo_selectable_item_background_borderless.xml b/library/ui/src/main/res/drawable-v21/exo_ripple_rew.xml similarity index 63% rename from library/ui/src/main/res/drawable-v21/exo_selectable_item_background_borderless.xml rename to library/ui/src/main/res/drawable-v21/exo_ripple_rew.xml index e9b1474003..ee43206b4a 100644 --- a/library/ui/src/main/res/drawable-v21/exo_selectable_item_background_borderless.xml +++ b/library/ui/src/main/res/drawable-v21/exo_ripple_rew.xml @@ -14,7 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - + + + + + + + + diff --git a/library/ui/src/main/res/drawable/exo_ripple_ffwd.xml b/library/ui/src/main/res/drawable/exo_ripple_ffwd.xml index f28eef2839..9f7e1fd027 100644 --- a/library/ui/src/main/res/drawable/exo_ripple_ffwd.xml +++ b/library/ui/src/main/res/drawable/exo_ripple_ffwd.xml @@ -14,8 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - + + + + + + + + + + + + + diff --git a/library/ui/src/main/res/drawable/exo_ripple_rew.xml b/library/ui/src/main/res/drawable/exo_ripple_rew.xml index a2cc2f8908..5562b1352c 100644 --- a/library/ui/src/main/res/drawable/exo_ripple_rew.xml +++ b/library/ui/src/main/res/drawable/exo_ripple_rew.xml @@ -14,8 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - + + + + + + + + + + + + + diff --git a/library/ui/src/main/res/layout/exo_styled_embedded_transport_controls.xml b/library/ui/src/main/res/layout/exo_styled_embedded_transport_controls.xml index ab82d5350d..75db3e4527 100644 --- a/library/ui/src/main/res/layout/exo_styled_embedded_transport_controls.xml +++ b/library/ui/src/main/res/layout/exo_styled_embedded_transport_controls.xml @@ -16,10 +16,8 @@ + #808080 + #80808080 #ffffff #B3ffffff #B3000000 diff --git a/library/ui/src/main/res/values/styles.xml b/library/ui/src/main/res/values/styles.xml index 060ced3577..7133b78f70 100644 --- a/library/ui/src/main/res/values/styles.xml +++ b/library/ui/src/main/res/values/styles.xml @@ -59,7 +59,7 @@