Android日常--fragment

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);

}

你可能感兴趣的:(Android日常--fragment)