mdpi is the reference density -- that is, 1 px on an mdpi display is equal to 1 dip. The ratio for asset scaling is:
ldpi | mdpi | tvdpi | hdpi | xhdpi | xxhdpi | xxxhdpi
0.75 | 1 | 1.33 | 1.5 | 2 | 3 | 4
Although you don't really need to worry about tvdpi unless you're developing specifically for Google TV or the original Nexus 7 -- but even Google recommends simply using hdpi assets. You probably don't need to worry about xxhdpi either (although it never hurts, and at least the launcher icon should be provided at xxhdpi), and xxxhdpi is just a constant in the source code right now (no devices use it, nor do I expect any to for a while, if ever), so it's safe to ignore as well.
What this means is if you're doing a 48dip image and plan to support up to xhdpi resolution, you should start with a 96px image (144px if you want native assets for xxhdpi) and make the following images for the densities:
ldpi | mdpi | tvdpi | hdpi | xhdpi | xxhdpi | xxxhdpi
36 x 36 | 48 x 48 | 64 x 64 | 72 x 72 | 96 x 96 | 144 x 144 | 192 x 192
And these should display at roughly the same size on any device, provided you've placed these in density-specific folders (e.g. drawable-xhdpi, drawable-hdpi, etc.)
For reference, the pixel densities for these are:
ldpi | mdpi | tvdpi | hdpi | xhdpi | xxhdpi | xxxhdpi
120 | 160 | 213 | 240 | 320 | 480 | 640
相关推荐
android多分辨率UI适配,该文档由前人文档总结,加上个人总结组成,里面包含了粗略适配,和精确适配的方案。
android多分辨率适配 ,判断平板还是手机,等比例缩小图片
android多分辨率适配 ,判断平板还是手机,等比例缩小图片.rar
Android应用源码之android多分辨率适配 ,判断平板还是手机,等比例缩小图片.rar
Android 应用项目开发源码 参考和学习使用
android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip源码资源下载android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip源码资源下载
安卓Android源码——android多分辨率适配 ,判断平板还是手机,等比例缩小图片.rar
安卓Android源码——android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip
Android应用源码之android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip项目安卓应用源码下载Android应用源码之android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip项目安卓应用源码下载 ...
Android应用源码之android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip
android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip项目安卓应用源码下载android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip项目安卓应用源码下载 1.适合学生毕业设计研究参考 2.适合个人学习...
通过默认的dimens.xml生成不同分辨率的xml文件,以便快速适配不同分辨率的设备。文件为可执行的jar文件 使用命令 java -jar cdimes.jar 执行该文件
android多分辨率适配 ,判断平板还是手机,等比例缩小图片.7z
Android高级应用源码-android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip
Android高级应用源码-android多分辨率适配 ,判断平板还是手机,等比例缩小图片.rar
android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip,太多无法一一验证是否可用,程序如果跑不起来需要自调,部分代码功能进行参考学习。
安卓开发-android多分辨率适配 ,判断平板还是手机,等比例缩小图片.zip.zip
Android应用源码开发Demo,主要用于毕业设计学习。
这是一款可以自动生成各个屏幕分辨率.xml文件的工具,内含demo和注释,教你怎么应用,非常好用,欢迎star!