Android ViewFlipper flip without animation -
i'm using viewflipper flip views animation. disable animation sometimes? tried startflipping() failed. idea? thanks.
just commenting out setinanimation , setoutanimation , call shownext() or showprevious() trick:
//viewflipper.setinanimation(this, r.anim.slide_in_from_left); //viewflipper.setoutanimation(this, r.anim.slide_out_to_right); viewflipper.shownext();
final solution:
viewflipper.setflipinterval(0); viewflipper.setinanimation(null); viewflipper.setoutanimation(null); viewflipper.shownext();
Comments
Post a Comment