booncol / Pulsator4Droid

Pulse animation for Android
MIT License
1k stars 173 forks source link

On restart the animation only show single Circle #4

Open pcfjojo opened 8 years ago

pcfjojo commented 8 years ago

I have implemented your library in my project, but everything works fine. When i restart the view it give only one circle, instead of 4 circle. private void startPulser(int color){ pulsator.stop(); // i tried without stop(). pulsator.setCount(4); pulsator.setDuration(7000); pulsator.setColor(color); pulsator.start(); }

//

booncol commented 8 years ago

let me check

pcfjojo commented 8 years ago

Thank you so much.. I am waiting.

luanbarbosa commented 7 years ago

+1

ghost commented 7 years ago

+1

ivandiazmolina commented 7 years ago

+1

ivamacio commented 7 years ago

+1

ivamacio commented 7 years ago

@booncol I sent you an email.

fR0DDY commented 7 years ago

+1 Though, doesn't happen when pulse_startFromScratch is set to true.

diogopereira commented 7 years ago

Thanks @fR0DDY. It seems that it only happens if you have the pulse_startFromScratch set t false. Even using the .setCount, only one pulse appears. Setting pulse_startFromScratch to true solved the problem.

ahaverty commented 7 years ago

I've taken a fix from @JeremiahStevenson fork which seems to fix this issue. I made a few gradle updates and a fix on the javadoc to get it to build publicly on jitpack, but so far so good for me anyway. (i.e: I've got multiple counts/circles working with startFromScratch set to false and working as expected 🙏)

Use this jitpack build of my last commit compile 'com.github.ahaverty:Pulsator4Droid:c31fb788db'

Or follow this link if you're not familiar with jitpack https://jitpack.io/#ahaverty/Pulsator4Droid/c31fb788db