Code example for ActionBar.Tab

Methods: getTag

0
	public void onTabReselected(Tab tab, FragmentTransaction ft) {
	} 
 
	@Override 
	public void onTabSelected(Tab tab, FragmentTransaction ft) {
		mGLSurfaceView = (GLSurfaceView) tab.getTag();
		setContentView(mGLSurfaceView);
	} 
 
	@Override 
	public void onTabUnselected(Tab tab, FragmentTransaction ft) {
	} 
 
} 
Experience pair programming with AI  Get Codota for Java