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

Adapter some phones for suddenly amplify the views and shrinking after. #395

Open
Onperson opened this issue Feb 9, 2022 · 0 comments
Open

Comments

@Onperson
Copy link

Onperson commented Feb 9, 2022

Recently, One user tell me that views will amplify suddenly and come to normal, so I test it for some phones, It can't repeat.
The Phone model is Vivo s7e活力版, Then i have been find an answer to solve this problem, but it doesn't work.
@Override public Resources getResources() { //需要升级到 v1.1.2 及以上版本才能使用 AutoSizeCompat AutoSizeCompat.autoConvertDensityOfGlobal((super.getResources());//如果没有自定义需求用这个方法 AutoSizeCompat.autoConvertDensity((super.getResources(), 667, false);//如果有自定义需求就用这个方法 return super.getResources(); }

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

1 participant