Code example for PagerAdapter

0
 
        protected ArrayList<IdleList> mLists;
 
        protected Context mContext;
 
        public MultiListPagerAdapter(Context context) {
            mContext = context;
            mLists = new ArrayList<IdleList>();
        } 
 
        public int getListCount() { 
            return mLists.size();
        } 
 
        public IdleList getList(int position) {
            return mLists.get(position);
        } 
 
        public void addList(IdleList list, int position) {
            mLists.add(position, list);
Contextual code suggestions in your IDE  Get Codota for Java