设计师给了我一个背景,我的应用程序,包括。它有很多细节的,所以努力创造一个9片图像时,它得到了模糊。
The designer has given me a background to include in my application. It has a lot of detail in it, so when trying to create a 9-patch image, it got blurry.
因此,决定有一个背景,以所有主要的屏幕密度在Android设备上,应该是什么确切的背景图片的大小?
So, deciding to have a background to all major screen densities in Android devices, what should be exactly the background image size?
例如:
在LDPI - 200×200 MDPI - 300×300 华电国际 - 400×400有没有标准,我应该遵循?
Is there any standard I should follow?
非常感谢,
菲利普
一般情况下,它可能是这样的:
generally, it could go like this:
LDPI:240 * 320(小) MDPI:320 * 480(中) 华电国际:480 * 800(大)
ldpi: 240 * 320 (small) mdpi: 320 * 480 (medium) hdpi: 480 * 800 (large)
但是,它不包括有关与480 * 854的屏幕分辨率,或720 * 1280新设备的设备相当多的可能性。
but, it won't cover quite a few possibilities regarding devices with 480 * 854 screen resolution, or newer devices with 720*1280..
您有2个选项:
1)尝试设计可以用来作为0.9新的背景
1) try to design a new background that can be used as .9
2)尝试创建多层绘制 - 可绘制将包括图像,该图像是0.9格式,并且所有被它粘的细节
2) try to create multi-layer drawable - the drawable would consist of image which is in .9 format, and all the details that are "glued" on it
第二个方法需要从你身边相当多的工作。阅读关于分层可绘制在这里:
the second approach requires quite a work from your side. Read about layered drawables here:
http://developer.android.com/guide/topics/resources/drawable-resource.html#LayerList