Code example for FragmentPagerAdapter

Methods: notifyDataSetChanged

0
	} 
 
	public void addTab(ActionBar.Tab tab, Class<?> clss) {
		mTabs.add(clss.getName());
		mActionBar.addTab(tab.setTabListener(this));
		notifyDataSetChanged(); 
	} 
 
	@Override 
	public int getCount() { 
		return mTabs.size();
	} 
 
	@Override 
	public Fragment getItem(int position) {
		return Fragment.instantiate(mContext, mTabs.get(position), null);
	} 
 
	@Override 
	public void onPageScrolled(int position, float positionOffset,
			int positionOffsetPixels) {