Code example for PagerAdapter

Methods: notifyDataSetChanged

0
            return mLists.get(position);
        } 
 
        public void addList(IdleList list, int position) {
            mLists.add(position, list);
            notifyDataSetChanged(); 
        } 
 
        public void addList(IdleList list) {
            mLists.add(list);
            notifyDataSetChanged(); 
        } 
 
        public void removeList(IdleList list) {
            mLists.remove(list);
            notifyDataSetChanged(); 
        } 
 
        public void removeList(int index) {
            mLists.remove(index);
            notifyDataSetChanged();