java.lang.IllegalStateException:Thespecifiedchildalreadyhasaparent.YoumustcallremoveView()onthechild’sparentfirst,解决办法:viewpager.setOffscreenPageLimit(6);要让这个PageLimit的数量大于adapter中的数量。
ViewPager内使用FragmentPagerAdapter时滑动出现
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child’s parent first,
解决办法:
viewpager.setOffscreenPageLimit(6);
要让这个PageLimit的数量大于adapter中的数量。