Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3509f507
authored
Nov 19, 2020
by
olly
Committed by
Ian Baker
Nov 23, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix fastforward and rewind color tinting and text alignment
Issue: #7898 PiperOrigin-RevId: 343251455
parent
78d65818
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
RELEASENOTES.md
library/ui/src/main/res/values/attrs.xml
library/ui/src/main/res/values/styles.xml
RELEASENOTES.md
View file @
3509f507
...
...
@@ -9,6 +9,10 @@
*
Suppress ProGuard warnings caused by Guava's compile-only dependencies
(
[
#8103
](
https://github.com/google/ExoPlayer/issues/8103
)
).
*
UI:
*
Fix incorrect color and text alignment of the
`StyledPlayerControlView`
fast forward and rewind buttons, when used together with the
`com.google.android.material`
library
(
[
#7898
](
https://github.com/google/ExoPlayer/issues/7898
)
).
*
Add
`dispatchPrepare(Player)`
to
`ControlDispatcher`
and implement it in
`DefaultControlDispatcher`
. Deprecate
`PlaybackPreparer`
and
`setPlaybackPreparer`
in
`StyledPlayerView`
,
`StyledPlayerControlView`
,
...
...
library/ui/src/main/res/values/attrs.xml
View file @
3509f507
...
...
@@ -72,6 +72,9 @@
<attr
name=
"controller_layout_id"
format=
"reference"
/>
<attr
name=
"animation_enabled"
format=
"boolean"
/>
<!-- Needed for https://github.com/google/ExoPlayer/issues/7898 -->
<attr
name=
"backgroundTint"
format=
"color"
/>
<!-- DefaultTimeBar attributes -->
<attr
name=
"bar_height"
format=
"dimension"
/>
<attr
name=
"bar_gravity"
format=
"enum"
>
...
...
library/ui/src/main/res/values/styles.xml
View file @
3509f507
...
...
@@ -93,12 +93,19 @@
<item
name=
"android:gravity"
>
center|bottom
</item>
<item
name=
"android:paddingBottom"
>
@dimen/exo_icon_padding_bottom
</item>
<item
name=
"android:textAppearance"
>
@style/ExoStyledControls.ButtonText
</item>
<!-- Needed for https://github.com/google/ExoPlayer/issues/7898 -->
<item
name=
"backgroundTint"
>
@android:color/white
</item>
<item
name=
"android:insetBottom"
>
0dp
</item>
</style>
<style
name=
"ExoStyledControls.Button.Center.RewWithAmount"
>
<item
name=
"android:background"
>
@drawable/exo_ripple_rew
</item>
<item
name=
"android:gravity"
>
center|bottom
</item>
<item
name=
"android:paddingBottom"
>
@dimen/exo_icon_padding_bottom
</item>
<item
name=
"android:textAppearance"
>
@style/ExoStyledControls.ButtonText
</item>
<!-- Needed for https://github.com/google/ExoPlayer/issues/7898 -->
<item
name=
"backgroundTint"
>
@android:color/white
</item>
<item
name=
"android:insetBottom"
>
0dp
</item>
</style>
<style
name=
"ExoStyledControls.ButtonText"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment