其中大小应背景是LDPI,MDPI,华电国际和xhdpi屏幕? [英] Which size should a background be for ldpi, mdpi, hdpi and xhdpi screens?

查看:175
本文介绍了其中大小应背景是LDPI,MDPI,华电国际和xhdpi屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设计师给了我一个背景,我的应用程序,包括。它有很多细节的,所以努力创造一个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:

<一个href="http://developer.android.com/guide/topics/resources/drawable-resource.html#LayerList">http://developer.android.com/guide/topics/resources/drawable-resource.html#LayerList

这篇关于其中大小应背景是LDPI,MDPI,华电国际和xhdpi屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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