TDialog
TDialog copied to clipboard
屏幕旋转,数据持久化
在屏幕旋转后,点击事件有做数据持久化么?
数据都做了序列化
@limuyang2
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
if (null == rootView) {
if (getLayoutRes() > 0) {
rootView = inflater.inflate(getLayoutRes(), container, false);
}
if (getDialogView() != null) {
rootView = getDialogView();
}
}
ViewGroup parent = (ViewGroup) rootView.getParent();
if (null != parent) parent.removeView(rootView);
bindView(rootView);
return rootView;
}
你要的是这个功能吧