fragment的缓存
if (view == null) {
view = inflater.inflate(R.layout.fragment_contacts_list2, null);
initViews();
}
ViewGroup parent = (ViewGroup) view.getParent();
if (parent != null) {
parent.removeView(view);
}
fragment的缓存
if (view == null) {
view = inflater.inflate(R.layout.fragment_contacts_list2, null);
initViews();
}
ViewGroup parent = (ViewGroup) view.getParent();
if (parent != null) {
parent.removeView(view);
}