Code example for ViewFlipper

Methods: setDisplayedChild

0
		tabHost.setOnTabChangedListener(new OnTabChangeListener() {
			 
			@Override 
			public void onTabChanged(String tabId) {
				if (LIST_TAB.equals(tabId)){
					listFlipper.setDisplayedChild(0);
				} 
			} 
		}); 
	} 
 
	@Override 
	public void onBackPressed() { 
		if (questionsList == listFlipper.getCurrentView()) {
			listFlipper.showPrevious();
		} else { 
			super.onBackPressed(); 
		} 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java