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

setOnLayoutCallback问题 #61

Open
ChessLuo opened this issue Jun 9, 2017 · 1 comment
Open

setOnLayoutCallback问题 #61

ChessLuo opened this issue Jun 9, 2017 · 1 comment

Comments

@ChessLuo
Copy link

ChessLuo commented Jun 9, 2017

初始化界面后 setOnLayoutCallback方法执行了两遍,导致向导重复提示了,如图:
image
有解决方案吗?

@isanwenyu
Copy link
Contributor

rom版本低于Android 4.1吗?
通过mAnchor.getViewTreeObserver().addOnGlobalLayoutListener(this)实现
可能会多次调用 建议先通过存入本地显示标志控制

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

2 participants