【Android异常】The specified child already has a parent. You must call removeView() on the child's parent first.

 

错误信息: 

Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

 

解决办法: 

View v = inflater.inflate(R.layout.preference_fragment, container, false);

posted @ 2013-07-10 16:39  马小豆包  阅读(371)  评论(0编辑  收藏  举报