JessYanCoding / JessYanCoding/AndroidAutoSize
手机系统字体大小改了之后,APP里面的字变得非常大,有什么办法去处理吗,或者不让APP随着系统改变
- Dominant language
- Java
- Stars
- 13.7k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
用这个方法没用,updateConfiguration也过时了
` @Override
public Resources getResources() {
Resources resources = super.getResources();
if (resources != null) {
Configuration configuration = resources.getConfiguration();
if (configuration != null && configuration.fontScale != 1.0f) {
configuration.fontScale = 1.0f;//这里只设置字体,故不使用下面注释的方法
// configuration.setToDefaults();
resources.updateConfiguration(configuration, resources.getDisplayMetrics());
}
}
return resources;
}`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.