carlosmuvi / SegmentedProgressBar

Instagram like segmented progress bar for Android, written in Kotlin!
132 stars 24 forks source link

How do I start the first play and start second automatically? #6

Closed kangjie6501 closed 4 years ago

kangjie6501 commented 7 years ago

How do I start the first play and start second automatically? I need each play to complete the listener.

carlosmuvi commented 7 years ago

The best way to achieve this is to create a Listener that will be called when a segment is completed. I will add it to the library soon, stay tuned!

RayVaniya commented 6 years ago

i have total 5 count(segments) and i have this code..

if (segmentedProgressBar.getCompletedSegments() != 4) { segmentedProgressBar.playSegment(1000); }

but not working, it fill only 1 segment, how to fill more than 1 segments with animation @carlosmuvi

jjimenez0611 commented 6 years ago

@carlosmuvi do you create the listener?

uzman commented 5 years ago

Hi, is there any progress for "starting next automatically" ?

carlosmuvi commented 4 years ago

The best way now is to use a listener (Added support in 0.8.3). Just call playNextSegment when the callback is triggered.