Scale with action
rmasarovic opened this issue · comments
rmasarovic commented
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;
Ahmed Tarek commented
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