标签:android style blog color ar sp div c 问题
直接上解决的代码模块
private View rootView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if (null != rootView) { ViewGroup parent = (ViewGroup) rootView.getParent(); if (null != parent) { parent.removeView(rootView); } } else { rootView = inflater.inflate(layoutId, null); initView(rootView);// 控件初始化 } return rootView; }
android之针对fragment多次调用onCreateView的问题
标签:android style blog color ar sp div c 问题
原文地址:http://www.cnblogs.com/lee0oo0/p/4011377.html