Code example for ViewFlipper

Methods: isFlippingstartFlippingstopFlipping

0
		btn2.setOnClickListener(new OnClickListener() {
			 
			 
			public void onClick(View v) {
				// TODO Auto-generated method stub 
				if (autoFlipper.isFlipping()) {
					autoFlipper.stopFlipping();
					btn2.setText("Start Flipping");
				} else { 
					autoFlipper.startFlipping();
					btn2.setText("Stop Flipping");
				} 
			} 
		}); 
	} 
 
	private void findViews() { 
		flipper = (ViewFlipper) findViewById(R.id.flipper1);
		btn = (Button) findViewById(R.id.flip_me);
		 
		autoFlipper = (ViewFlipper) findViewById(R.id.viewFlipper1);