tarek360 / RichPath

💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can.

Home Page:https://twitter.com/a_tarek360

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scale with action

rmasarovic opened this issue · comments

Hi, I try make scale animation in onClickListener with your library but this dont work.
scale to zero work but when click again scale to 1 dont work.
if (!notif) {
RichPathAnimator rigRichPathAnimator = RichPathAnimator.animate(line5)
.scaleX(0)
.scaleY(0)
.duration(700)
.start();
} else {
RichPathAnimator rigRichPathAnimator = RichPathAnimator.animate(line5)
.scaleX(1)
.scaleY(1)
.duration(700)
.start();
}
notif = !notif;

Hi @rmasarovic
This is a known issue, but there is a workaround for it:
scale to a very small value like 0.0001f instead of using 0