Code example for FragmentStatePagerAdapter

Methods: notifyDataSetChanged

0
        return tab;
    } 
 
    private void notifyChanged() { 
        if (mAdapter != null) {
            mAdapter.notifyDataSetChanged();
        } 
    } 
 
    public void onDestroyView() { 
        mActionBar.removeAllTabs();
        mActionBar.setNavigationMode(mPrevNavigationMode);
    } 
 
    protected abstract void onHandleTabs(); 
 
    public void onTabSelected(int position) {
        if (mOnTabSelectedListener != null) {
            mOnTabSelectedListener.onTabSelected(position);
        } 
    }