平常报错
1.添加fragment时出现java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.原因,第三个参数忘了加
protected View setLayoutView(LayoutInflater inflater, @Nullable ViewGroup container) { return inflater.inflate(R.layout.fragment_life_zipcode,container,false); }
本文来自博客园,作者:西瓜皮不甜,转载请注明原文链接:https://www.cnblogs.com/Jieth/p/8109966.html
浙公网安备 33010602011771号