Code example for ViewFlipper

Methods: setInAnimation, setOutAnimation, showNext

0
                    viewFlipper.setInAnimation(inFromLeft); 
                    viewFlipper.setOutAnimation(outToRight); 
                    viewFlipper.showPrevious(); 
                    setDataLogic.leftToRightLogic(); 
                } else { 
                    viewFlipper.setInAnimation(inFromRight); 
                    viewFlipper.setOutAnimation(outToLeft); 
                    viewFlipper.showNext(); 
                    setDataLogic.rightToLeftLogic(); 
                } 
                setDataLogic.setDataLogic(); 
                Log.d("BBT", "OnGestureListener.onFling"); 
                return true; 
            } 
 
            return false; 
        } 
 
        @Override 
        public boolean onDown(MotionEvent e) { 
            return false;