Code example for TabHost.TabSpec

Methods: getTag, setContent

0
		mViewPager.setOnPageChangeListener(this);
	} 
 
	public void addTab(TabSpec tabSpec, Class<?> clss, Bundle args )
	{ 
		tabSpec.setContent(new DummyTabFactory(mContext));
		String tag =tabSpec.getTag();
		TabInfo info = new TabInfo(tag, clss, args);
		mTabs.add(info);
		mTabHost.addTab(tabSpec);
		notifyDataSetChanged(); 
	} 
	@Override 
	public void onPageScrollStateChanged(int arg0) {		
	} 
 
	@Override 
	public void onPageScrolled(int arg0, float arg1, int arg2) {		
	} 
 
	@Override