机器人:删除LDPI / MDPI文件夹中的陷阱 [英] android:pitfalls of deleting ldpi/mdpi folders
问题描述
我想知道什么是删除我的Android项目的LDPI / MDPI /华电国际文件夹的陷阱?可我刚才的所有图像复制中绘制文件夹呢?
I was wondering what are the pitfalls of deleting the ldpi/mdpi/hdpi folders on my android project? Can i just copy all the images in the drawable folder instead?
我没有看到有关UI开发针对Android以下链接 http://developer.android.com/guide/practices/ui_guidelines/icon_design.html http://developer.android.com/guide/practices/screens_support.html
I did see the following links about UI development for android http://developer.android.com/guide/practices/ui_guidelines/icon_design.html http://developer.android.com/guide/practices/screens_support.html
感谢
PS:我指的是所有正在使用的图像,背景,图标,菜单等...
PS: I 'm referring to all the images that are being used, background,icons,menus etc...
推荐答案
。虽然不是最好的做法,如果你的应用是在图形方面相当保守,那么这可能是一个合理的方法。
If you want to, go for it. Although not the best practice, if your application is quite conservative in terms of graphics then this may be a reasonable approach.
优点:
- 在较小的apk文件大小
- 更易于管理映像(添加/编辑/删除)
缺点:
- 图片可能太高水库或过低水库为不同的屏幕分辨率。
- 如果过高,图像上的哪个吃掉处理能力(+不必要的内存消耗)飞缩小。
- 如果太低,图像将缺乏细节和可能看起来很糟糕。
- 在低端设备具有较低的内存容量(最低16MB之中,我认为) - 什么可能看起来工作在测试设备上可能在另一个无法正常工作 (OutOfMemoryError错误!)。
- Images may be too high res or too low res for different screen resolutions.
- If too high, images are scaled down on the fly which eats up processing power (+ unnecessary memory consumption).
- If too low, images will lack detail and may look bad.
- Lower-end devices have a lower memory cap (lowest being 16MB I think) - what may seem to work on your test device may not work on another (OutOfMemoryError!).
更新
如果你想快速的方法,使图标的所有决议退房:的 Android的资产工作室
If you want a quick way to make icons for all resolutions check out: Android Asset Studio
这篇关于机器人:删除LDPI / MDPI文件夹中的陷阱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!