Code example for ActionBar

Methods: addTabnewTab

0
		 return true; 
	} 
	 
	protected void createTab(ActionBar ab, Activity activite,int texte, String nameFragment) {
		FragmentTabListener fragment = new FragmentTabListener(activite,nameFragment);
		Tab t = ab.newTab();
		t.setText(texte);
		t.setTabListener(fragment);
		ab.addTab(t);
	} 
	 
	 
	 
	 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java