Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timebar back color #2845

Closed
arefehiravanchi opened this issue May 18, 2017 · 1 comment
Closed

Timebar back color #2845

arefehiravanchi opened this issue May 18, 2017 · 1 comment

Comments

@arefehiravanchi
Copy link

arefehiravanchi commented May 18, 2017

I want to customize color and size of seekbar in controlview of player, I overwrite exo_playback_control_view file in my project and set played_color in timebar, it works for played color but it assign on background of timebar too.
I have this :
1

And I want something like this:
2

How can I set 2 different color for background and played color in timebar?

@tonihei
Copy link
Collaborator

tonihei commented May 18, 2017

A similar question has been asked here: #2740, please have a look. The next version (2.4.1) will contain separate attributes for played_color and unplayed_color to allow further customization.

In the current version (2.4.0), the name played_color attribute is slightly misleading because it applies to the entire timeline. The left part is rendered opaque while the right part is rendered in the original colour.
For example, if your played_color is set to #33FFA500 (translucent orange), the played part will be painted in #FFFFA500 (opaque orange) while the unplayed part will be painted in the translucent orange. Judging from your screenshot, you are setting played_color to opaque orange, such that the played and unplayed part are both coloured the same.

@tonihei tonihei closed this as completed May 18, 2017
@google google locked and limited conversation to collaborators Sep 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants