panwrona / DownloadProgressBar

DownloadProgressBar is an android library that delivers awesome custom progress bar. You can manipulate it's state in every way.
974 stars 167 forks source link

Pause Success View . #2

Closed joseph27 closed 9 years ago

joseph27 commented 9 years ago

Hello ,

thanks for such great animation .we have an enquiry here about your libary we are using your animation as part of an introduction screen but after the animation finishes the Arrow view comes again . how can we pause the view of success as Tick Sign if you can give us the instructions thats would be great . Thanks .

panwrona commented 9 years ago

Hello,

Thank You for those kind words ;) First of all, everything is being drawn in onDraw() method. Each step of the animation is setting the State object (which is an enum). So if you want to pause this animation on success state, you have to change the Animation Listener of Success Animation -> especially the onAnimationEnd() callback. If You don't update the State to State.IDLE and don't call the resetValues() method, the animation should stop on success value and don't go any further.

If something's not clear, just leave a comment ;)

Cheers, PanWrona ;)

joseph27 commented 9 years ago

Thanks for Your reply i have achieved The Desire View by removing
resetValues(); & invalidate(); onAnimationEnd

Thanks again.

panwrona commented 9 years ago

Happy to hear that, cheers ;)