The specified child already has a parent. You must call removeView() on the child's parent first.
2015-09-23 18:37
423 查看
在使用fragmentActivity和fragment时,调用replace时出现Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.错误。
解决办法:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_exchange, container,
false);
解决办法:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_exchange, container,
false);
相关文章推荐
- "This app is not allowed to query for scheme ***"
- jquery中onclick事件处理(转载)
- LUA string库详解
- hadoop 配置项的调优
- Oracle--工作小结
- 鸟哥的Linux私房菜10.16 vim程序编辑器
- hihoCoder 1236 Scores 解题报告(bitset + 分段暴力)
- iOS-Core-Animation-Advanced-Techniques(六)
- AppManager管理Activity工具类
- leetcode-107-Binary Tree Level Order Traversal II
- itween插件使用
- boneCP连接池配置
- 第二次作业(个人项目实践)
- 鸟哥的Linux私房菜10.15 档案与文件系统的压缩与打包
- 关于Mapped Statements collection does not contain value for错误
- MQTT
- 什么时候使用单例什么时候使用静态类?
- getcomponent等等
- LAMP编译介绍二、 php以fpm的方式结合apache工作
- unity C# NGUI控件寻路径方法