java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
来源:互联网 发布:钢结构荷载计算软件 编辑:程序博客网 时间:2024/06/06 02:01
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child’
这个异常是在Fragment内嵌套TabLayout+ViewPager+Fragment的时候出现的。Tab数量:4个。前三个[Tab]可以随意滑动,可是滑动到第四个再滑到前三个任意一个的时候就出现了异常: java.lang.**IllegalStateException**: The specified child already has a parent. You must call removeView() on the child'
也是搜了很多网页查找解决办法,说是子View只能有一个父View。。。花了很多时间也没好。。。
最后我是猜测——前三个没事,就最后一个有问题,就把ViewPager设置缓存个
数`
setOffscreenPageLimit(3);
成功。暂时解决。。。以后有坑再更。
阅读全文
0 0
- java.lang.IllegalStateException The specified child already has a parent. You must call removeView()
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView
- java.lang.IllegalStateException The specified child already has a parent. You must call removeView()
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- ava.lang.IllegalStateException: The specified child already has a parent. You must call removeView()
- ava.lang.IllegalStateException The specified child already has a parent. You must call removeView()
- Android—java.lang.IllegalStateException: The specified child already has a parent. You must call rem
- 【Spring Cloud】三、Eureka Consumer 服务注册中心消费者调用服务
- 11g dg 从库sql性能问题处理吐槽
- 两个int(32位)整数m和n的二进制表达中,有多少个位(bit)不同
- 关于web.xml里面使用classpath:找不到文件
- java poi实现execl三级联动
- java.lang.IllegalStateException: The specified child already has a parent. You must call removeView(
- react native学习笔记18——存储篇(3)Realm
- xtrabackup恢复备份后,mysql无法启动,报Job failed to start
- lightdm-login-chromeos, 将 chromiumos vibe窗口管理器安装到 Ubuntu
- at91sam9260的Telnet远程登录开发板
- python DataFrame 取差集
- Spring Security 默认的过滤器链
- eclipse上tomcat运行动态网页404的解决方法(并不完美但有效)
- CocosCreator PageView组件使用