FragmentTabHost简单保存状态的方法

private View rootView;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) { if (rootView == null){
rootView = inflater.inflate(R.layout.fragment_on_visit, container, false);
ButterKnife.bind(this, rootView);
init();
}else {
return rootView;
}
return rootView;
}
上一篇:1079. Total Sales of Supply Chain (25)


下一篇:【Qt编程】Qt学习之窗口间的相互切换