-
Notifications
You must be signed in to change notification settings - Fork 2k
横竖屏切换 布局异常~问题所在及解决方案 #388
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
Comments
后续经过debug及文档的查看,发现了问题所在。 |
经测试,已解决了自己的问题
|
有个问题,我做折叠屏还是横竖屏适配的时候,也注册了这个监听,然后在谷歌nexus手机上,发现向application注册的这个监听没有回调,你可以找台手机确认下 |
一些折叠屏屏幕开合后,也会出现同样的问题,导致缓存了错误的屏幕数据。 |
“ScreenUtils.getScreenSize(application) 获取到的宽高有误(在系统切换横竖屏时,此时立马去获取 WindowManager 的宽高,小概率获取到的还是之前的宽高,并不是切换之后的宽高”,折叠屏开到闭,必现此问题哈哈 |
請問有解嗎 |
https://blog.csdn.net/weixin_38702864/article/details/127071799 |
将Activity从竖屏页面切换至横屏页面,此时 弹出对话框布局异常,或者将app切换到后台,在切回前台时,退出横屏,此时会发现 竖屏界面 异常,部分字体偏大。
参考了#248 #44 #213 等issues都无法处理自己的问题
The text was updated successfully, but these errors were encountered: