Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

屏幕旋转,数据持久化 #25

Open
limuyang2 opened this issue Jun 28, 2018 · 2 comments
Open

屏幕旋转,数据持久化 #25

limuyang2 opened this issue Jun 28, 2018 · 2 comments

Comments

@limuyang2
Copy link

在屏幕旋转后,点击事件有做数据持久化么?

@Timmy-zzh
Copy link
Owner

数据都做了序列化

@zwping
Copy link

zwping commented Jul 16, 2018

@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;
    }

你要的是这个功能吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants