Code example for ActionBar.Tab

Methods: getText

0
		this.fragment = fg;
	} 
	 
	@Override 
	public void onTabReselected(Tab tab, FragmentTransaction ft) {
		Log.i("ActionBar", tab.getText() + " reseleccionada.");
	} 
	 
	@Override 
	public void onTabSelected(Tab tab, FragmentTransaction ft) {
		Log.i("ActionBar", tab.getText() + " seleccionada.");
		ft.replace(R.id.contenedor, fragment);
	} 
	 
	@Override 
	public void onTabUnselected(Tab tab, FragmentTransaction ft) {
		Log.i("ActionBar", tab.getText() + " deseleccionada.");
		ft.remove(fragment);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE