if (mRootView == null || mRootView.get() == null) { view = inflater.inflate(R.layout.ification_main,container,false); mRootView = new WeakReference<View>(view); } else { ViewGroup parent = (ViewGroup) mRootView.get().getParent(); if (parent != null) { parent.removeView(mRootView.get()); } } return mRootView.get();
Android-Fragment-界面保存
最新推荐文章于 2021-05-28 19:40:37 发布