如何创建具有良好的分辨率Android的图像? [英] How can I create Android images with good resolution?

查看:131
本文介绍了如何创建具有良好的分辨率Android的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个Android应用程序。主要活动布局将有一个背景图像将与整个屏幕换行。我应该使用什么分辨率的创建背景图像?什么DPI?我需要它与所有设备兼容
(例如HTC感觉屏幕的分辨率为540倍; 960像素)。

I'm creating an Android application. The main activity layout will have a background image that will wrap with the whole screen. What resolution should I use to create the background image? What about DPI? I need it to be compatible with all devices (for example the HTC Sensation screen's resolution is 540 × 960 pixels).

推荐答案

您应该阅读支持多个屏幕。您必须在模拟器中定义的DPI。 240是华电国际,160是MDPI及以下,通常是LDPI。

You should read Supporting multiple screens. You must define dpi on your emulator. 240 is hdpi, 160 is mdpi and below that are usually ldpi.

从上面的Andr​​oid开发者指南链接提取

Extract from Android Developer Guide link above:

320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).  
480dp: a tweener tablet like the Streak (480x800 mdpi).  
600dp: a 7" tablet (600x1024 mdpi).  
720dp: a 10" tablet (720x1280 mdpi, 800x1280 mdpi, etc).

这篇关于如何创建具有良好的分辨率Android的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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