Code example for PagerAdapter

Methods: notifyDataSetChanged

0
        String tag = tabSpec.getTag();
 
        TabInfo info = new TabInfo(tag, view);
        mTabs.add(info);
        mTabHost.addTab(tabSpec);
        notifyDataSetChanged(); 
    } 
 
    @Override 
    public int getCount() { 
        return mTabs.size();
    } 
 
    @Override 
    public Object instantiateItem(ViewGroup container, int position) {
        View view = mTabs.get(position).view;
        container.addView(view);
        return view;
    } 
 
    @Override