Code example for ArrayList

Methods: get

0
            return mTabs.size();
        } 
 
        @Override 
        public Fragment getItem(int position) {
            TabInfo info = mTabs.get(position);
            return Fragment.instantiate(mContext, info.clss.getName(), info.args);
        } 
 
        @Override 
        public void onTabChanged(String tabId) {
            int position = mTabHost.getCurrentTab();
            mViewPager.setCurrentItem(position);
        } 
 
        @Override 
        public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
        } 
 
        @Override 
        public void onPageSelected(int position) {