Code example for Activity

Methods: getActionBargetFragmentManager

0
        private final Context mContext;
        private final ActionBar mActionBar;
        private final ViewPager mViewPager;
        private final ArrayList<TabInfo> mTabs = new ArrayList<TabInfo>();
 
        static final class TabInfo { 
            private final Class<?> clss;
            private final Bundle args;
 
            TabInfo(Class<?> _class, Bundle _args) {
                clss = _class;
                args = _args;
            } 
        } 
 
        public TabsAdapter(Activity activity, ViewPager pager) {
            super(activity.getFragmentManager());
            mContext = activity;
            mActionBar = activity.getActionBar();
            mViewPager = pager;
            mViewPager.setAdapter(this);