Code example for ViewFlipper

Methods: setAutoStartstopFlipping

0
		aa.startNow();
	} 
 
	@Override 
	public boolean onTouchEvent(MotionEvent event) {
		viewFlipper.stopFlipping(); // µã»÷ʼþºó£¬Í£Ö¹×Ô¶¯²¥·Å
		viewFlipper.setAutoStart(false);
		return gestureDetector.onTouchEvent(event); // ×¢²áÊÖÊÆʼþ
	} 
 
	@Override 
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		if (e2.getX() - e1.getX() > 120) {
			if (viewFlipper.getCurrentView().getId() != R.id.start) {
				Animation rInAnim = AnimationUtils.loadAnimation(this,
						R.anim.push_right_in); // ÏòÓÒ»¬¶¯×ó²à½øÈëµÄ½¥±äЧ¹û£¨alpha 0.1 -> 
												// 1.0£© 
				Animation rOutAnim = AnimationUtils.loadAnimation(this,
						R.anim.push_right_out); // ÏòÓÒ»¬¶¯ÓҲ໬³öµÄ½¥±äЧ¹û£¨alpha 1.0 -> 
Connect your IDE to all the code out there  Get Codota for Java