android – 为不同的dpi创建drawable的最佳方法是什么

前端之家收集整理的这篇文章主要介绍了android – 为不同的dpi创建drawable的最佳方法是什么前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
你是先创建MDPI drawable,然后根据photoshop中的像素按比例缩放到.075 / 1.00 / 1.50/2比例,还是重新创建每个可绘制的?

从高质量的图像开始并开始缩小图像或从MDPI图像开始并扩展它也是更好的方法吗?

这是我做的:

在Photoshop中创建一个mdpi图像,320×480 porportions和160分辨率.只需输入120,160,240或320作为分辨率,即可保存4张图像并更改分辨率.

解决方法

Android设计指南:

Strategies

So where do you begin when designing for multiple screens?
One approach is to work in the base standard (medium size,MDPI) and
scale it up or down for the other buckets. Another approach is to
start with the device with the largest screen size,and then scale
down and figure out the UI compromises you’ll need to make on smaller
screens.

有关此主题的更多详细信息,请查看Supporting Multiple Screens.

原文链接:https://www.f2er.com/android/312430.html

猜你在找的Android相关文章