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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -