WeixinFragment的onCreateView()
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState)
{
return inflater.inflate(R.layout.tab01, container,false);
}
inflage()传入三个参数就可以,若传入两个return inflater.inflate(R.layout.tab01, container);就会报错:Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. 这是什么原因呢?