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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -