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

getResource#getDimensionPixelSize的值还有原先的,怎么破 #117

Closed
5 tasks done
xiaoxiaScut opened this issue Jan 5, 2019 · 1 comment
Closed
5 tasks done

Comments

@xiaoxiaScut
Copy link

Environment

  • Autosize Version:
  • Target Android Version:
  • Device Model:
  • Device Resolution:
  • Design Size On AndroidManifest:

Bug Description:

Log:



Screenshot

Related Code:

  

Others:

@JessYanCoding
Copy link
Owner

我这里不能复现,完全正常,考虑是你的系统或者环境问题,打断点看下 density 是否是正确的值,不是正确的值,试试这个方案 #13 (comment) ,如果还是原始的值将这个原始的值传入 AutoSizeUtils#dp2px 即可转变成 px,副单位的话就使用 AutoSizeUtils 中对应的方法

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