-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Custom played colour in TimeBar #2740
Comments
The name You should be able to see this if you set the color like I'll fix the naming of the attribute, but I suspect you might also want the ability to set the colors to the left and the right of the scrubbing handle separately? Please clarify if this is the case and if so I'll mark this as an enhancement. Thanks! |
Thank you for your response and explanation, Andrew! Okay, so my Also, something that I found odd: when scrubbing back, the buffered colour is used instead of the played colour. So we get a section of solid red, the playhead, buffered colour up to currentPosition, followed by translucent red. When scrubbing finishes, the bar turns translucent red to the right of the playhead. I personally think that the buffered colour shouldn't show when scrubbing back, as that section isn't technically buffered, and just results in a colour jump. What are your thoughts on this? |
I suspect I'll mark this as an enhancement to track being able to specify colors for the played/buffered/unplayed parts of the bar and the scrubber handle separately. If you want to customize how the buffered section is shown, you can make your own implementation of |
Add attributes for the scrubber handle color and unplayed color. If attributes are missing, derive defaults from the played color. Issue: #2740 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154825736
Add attributes for the scrubber handle color and unplayed color. If attributes are missing, derive defaults from the played color. Issue: #2740 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154825736
Hey guys!
Just updated to 2.4.0 and am playing around with the new TimeBar. Loving the customisations available.
I set a custom playedColor (
app:played_color="@color/red"
), and noticed that the colour of the whole progress bar changes to the played colour when scrubbing finishes. So if I'm at position 1000 and am scrubbing back to position 200, the played colour only fills up to 200, but if I let go at 200, the whole bar turns to the played colour.The text was updated successfully, but these errors were encountered: