Last active
June 27, 2019 06:08
-
-
Save CodeK1988/fbe831231623a2974acb08ca37c9bcfd to your computer and use it in GitHub Desktop.
避免遗忘
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hdpi 72x72 | |
| mdpi 48x48 | |
| xhdpi 96x96 | |
| xxhdpi 144x144 | |
| xxxhdpi 192x192 | |
| android中的dp在渲染前会将dp转为px,计算公式: | |
| px = density * dp; | |
| density = dpi / 160; | |
| px = dp * (dpi / 160); | |
| 而dpi是根据屏幕真实的分辨率和尺寸来计算的,每个设备都可能不一样的。 | |
| thanks | |
| https://developer.android.com/guide/practices/screens_support.html | |
| https://juejin.im/post/5b7a29736fb9a019d53e7ee2 | |
| https://github.com/JessYanCoding/AndroidAutoSize | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment