您的位置:首页 > 编程语言 > PHP开发

ViewPager内使用FragmentPagerAdapter时滑动出现illegalstateexception解决办法

2015-05-13 11:05 393 查看
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中的数量。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐