gpt4 book ai didi

android - 为不同的 dpi 创建可绘制对象的最佳方法是什么

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:33:29 25 4
gpt4 key购买 nike

您是先创建 MDPI 可绘制对象,然后在 photoshop 中按像素相应地将其缩放为 .075/1.00/1.50/2 比例,还是重新创建每个单独的可绘制对象?

还有,是从高质量图像开始然后开始缩小它还是从 MDPI 图像开始然后只放大它更好?

这是我的做法:

在 photoshop 中创建一个 320x480 比例和 160 分辨率的 mdpi 图像。只需输入 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.

关于android - 为不同的 dpi 创建可绘制对象的最佳方法是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8934399/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com