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

ViewCompat.setRotation导致view消失 #28

Open
liaohuyu opened this issue Jul 24, 2019 · 1 comment
Open

ViewCompat.setRotation导致view消失 #28

liaohuyu opened this issue Jul 24, 2019 · 1 comment

Comments

@liaohuyu
Copy link

某些机型,在跳出当前app后回来的时候,view消失了。我设置的是显示三个,只能看到中间的一个了,旁边的两个还存在,就是不见了

@kHRYSTAL
Copy link
Owner

方便的话 请列出机型和测试代码 可能是由于onWindowVisibilityChanged重绘导致的问题
可以尝试

  1. 在自定义view中onWindowVisibilityChanged, onVisibilityChanged, onScreenStateChanged 添加requestLayout
  2. 在自定义view中onWindowVisibilityChanged, onVisibilityChanged, onScreenStateChanged 添加scrollBy(0, 1)scrollBy(1, 0)

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