animation with delay android in ImageView -
i'm trying implement animation delay in android, in case imageview infinitely rotating, because don't know how can dynamically stop , start it.
final rotateanimation anim = new rotateanimation(0f, 350f, 15f, 15f); anim.setinterpolator(new linearinterpolator()); anim.setrepeatcount(animation.infinite); anim.setduration(700); imageview.startanimation(anim);
take @ setrepeatcount arguments , setstartoffset method. first 1 allows limit repeated animation, second 1 - introduce time delay.
Comments
Post a Comment