Code example for ArrayList

Methods: remove

0
            mLists.add(list);
            notifyDataSetChanged(); 
        } 
 
        public void removeList(IdleList list) {
            mLists.remove(list);
            notifyDataSetChanged(); 
        } 
 
        public void removeList(int index) {
            mLists.remove(index);
            notifyDataSetChanged(); 
        } 
 
        @Override 
        public Object instantiateItem(ViewGroup container, int position) {
            IdleList list = mLists.get(position);
 
			/* Add the list to the container */ 
            if (container.indexOfChild(list) < 0) {                /* Remove list from its current parent if it has one */
                final ViewGroup existingParent = (ViewGroup) list.getParent();