Code example for ViewFlipper

Methods: getDisplayedChild

0
 
		this.updateButtons();
	} 
 
	protected boolean isFirstDisplayed() { 
		return (flipper.getDisplayedChild() == 0);
	} 
 
	protected boolean isLastDisplayed() { 
		return (flipper.getDisplayedChild() == flipper.getChildCount() - 1);
	} 
 
	protected void updateButtons() { 
		boolean eula = (flipper.getDisplayedChild() == 0);
 
		next.setText(eula ? getString(R.string.wizard_agree) : getString(R.string.wizard_next));
		prev.setText(eula ? getString(R.string.delete_neg) : getString(R.string.wizard_back));
	} 
}