Code example for ActionBar.Tab

Methods: addTab, setTabListener, setTag

0
		 * @param fragmentClass 
		 * @param args 
		 */ 
		public void addTab(ActionBar.Tab tab, Class<?> fragmentClass, Bundle args) {
			TabInfo info = new TabInfo(fragmentClass, args);
			tab.setTag(info);
			tab.setTabListener(this);
			getTabs().add(info);
			getActionBar().addTab(tab);
			notifyDataSetChanged(); 
		} 
		  
		@Override 
		public void onPageScrollStateChanged(int state) {
		   // TODO Auto-generated method stub 
		} 
		  
		@Override 
		public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
			// TODO Auto-generated method stub 
		}