The specified child already has a parent. You must call removeView() on the child's parent first.
来源:互联网 发布:js鼠标滚轮放大图片 编辑:程序博客网 时间:2024/05/29 14:45
报错提示
子View不能有多个父View,必须要通过removeView(view)方法先remove掉才能再使用。
((ViewGroup)view.getParentView()).removeView(view);
特别提醒:removeView方法在View中没有,只能转化成其子类ViewGroup才能使用;
0 0
- The specified child already has a parent. You must call removeView() on the child's parent first.
- 二、The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first
- The specified child already has a parent. You must call removeView() on the child's parent first
- The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first
- The specified child already has a parent. You must call removeView() on the child's parent first.
- 总是报The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first.解决办
- The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first
- The specified child already has a parent. You must call removeView() on the child's parent first.问解决
- The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first.
- 数据结构与算法分析笔记与总结(java实现)--字符串3:把字符串转换成整数
- # oracle11g exp空表无法导出的问题
- Django静态文件配置
- sqlserver清除缓存,记录查询时间
- Web.Config配置详细说明
- The specified child already has a parent. You must call removeView() on the child's parent first.
- android6.0动态权限,以及如何同时授予多个权限,当用户禁用的后续处理
- printf()函数
- css基础1-业务要点
- ROS-Industrial Simple-Message 安装 etc.
- 创业总结
- 解析url
- 文件上传
- VC实现文件的上传下载 客户端