仅使用XHDPI可绘制在Android应用程序? [英] Only use XHDPI drawables in Android app?

查看:109
本文介绍了仅使用XHDPI可绘制在Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果你打算支持LDPI,MDPI,HPDI,也许XHDPI在不久的将来,那是正确的,只包括XHDPI可绘制的项目,并让设备扩展到他们所需的分辨率?

If you're planning to support LDPI, MDPI, HPDI, and perhaps XHDPI in the near future, is it ok to only include XHDPI drawables in the project and let the devices scale them to their desired resolution?

我已经测试调整可绘制成MDPI和华电国际在Photoshop中,然后进行比较的结果与XHDPI可绘制只有Android的调整,我看不出任何差别。它是坏的设计,借此捷径?这将是很好,不必每个绘制调整为3个不同的分辨率。

I've tested to resize the drawables into MDPI and HDPI in Photoshop and then compared the result with XHDPI drawables only resized by Android, and I can't see any difference at all. Is it bad design to take this shortcut? It would be nice to not have to resize each and every drawable into 3 different resolutions.

计划使用的目标SDK是2.1或2.2。

Planning to use target SDK is 2.1 or 2.2.

BR 埃米尔

推荐答案

我想这是一个很好的路要走。唯一的缺点我能想到的是小规模设备,并因为降尺度可能的文物资源开销。其实在今年的谷歌IO克里斯PRUETT建议仅嵌入高分辨率的资产,让OpenGL的处理缩放。

I guess that's a good way to go. The only downside I can think of is the resource overhead on small scale devices and possible artifacts because of the downscaling. Actually at this year's Google IO Chris Pruett recommended embedding only high resolution assets and let opengl handle the scaling.

这篇关于仅使用XHDPI可绘制在Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆