Code example for ViewFlipper

Methods: getDisplayedChild, showPrevious

0
					// user walked past beginning of wizard, so return that they cancelled 
					WizardActivity.this.setResult(Activity.RESULT_CANCELED);
					WizardActivity.this.finish();
				} else { 
					// show previous step and update buttons 
					flipper.showPrevious();
					updateButtons(); 
				} 
			} 
		}); 
 
		this.updateButtons();
	} 
 
	protected boolean isFirstDisplayed() { 
		return (flipper.getDisplayedChild() == 0);
	} 
 
	protected boolean isLastDisplayed() { 
		return (flipper.getDisplayedChild() == flipper.getChildCount() - 1);
	}