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);
}
本文标题:Android日常--fragment
本文链接:https://www.haomeiwen.com/subject/azhcottx.html
网友评论