如果viewpager listadapter小于三个。用这个移除异常。


for (View view : viewList) { 

            ViewGroup p = (ViewGroup) view.getParent(); 

            if (p != null) { 

                p.removeAllViewsInLayout(); 

            } 

        }