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

部分手机第一次打开适配会无效,布局会变得很大,第二次打开就正常了 #31

Open
zswm opened this issue Apr 28, 2018 · 3 comments

Comments

@zswm
Copy link

zswm commented Apr 28, 2018

部分手机第一次打开适配会无效,布局会变得很大,第二次打开就正常了,比如一加手机,还有魅族,还有小米有时候会出现这个问题,有时候不会,这是什么问题?要怎么解决?

@Firedamp
Copy link
Owner

请问能给一个具体的demo看一下吗

@zswm
Copy link
Author

zswm commented May 29, 2018

@Firedamp 我就是在Application中设置了宽度,然后在在BaseActivity中在resetDensity了一次。dialog中的onCreate也再resetDensity一次。这种情况出现的几率比较低,只是偶尔出现一次,然后要去跟踪看看的时候就一直没在出现。出现这种情况的地方一般都是dialog中或者自定义的view中。

@isqing
Copy link

isqing commented Oct 8, 2018

我也遇到这个情况了,有解决吗

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