Android:支持所有设备的背景图像大小(以像素为单位) [英] Android: Background Image Size (in Pixel) which Support All Devices

查看:25
本文介绍了Android:支持所有设备的背景图像大小(以像素为单位)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个可以在所有 Android 设备上运行的应用程序.我想为我的应用程序创建 xhdpi 图形.我的应用程序是全屏的.我对创建图形感到困惑.谁能告诉我背景图片的最佳尺寸(以像素为单位).

I am creating an Application which will run on all Android Devices. I want to create xhdpi Graphics for My App. My App is full screen. I am confused in Creating graphics. can any one tell me the best sizes of my background image in pixels.

例如:

  • xhdpi:720x1280 像素
  • hdpi:480x800 像素
  • mdpi:320x480 像素
  • ldpi:240x320 像素

向我推荐将出现在所有设备上的最佳尺寸.因为我的图形是我应用的核心.

Suggest me the best sizes which will appear on all devices good. Because my graphics are the core of my app.

我希望每个设备都能获得它想要的最佳图像.Android 将不参与图像的压缩或扩展.

I want that every device get the best image which it want. Android will be not involved in compressing or expanding of image.

推荐答案

以下是应用在所有设备上运行的最佳尺寸.要了解多个支持屏幕,您必须阅读http://developer.android.com/guide/practices/screens_support.html

The following are the best dimensions for the app to run in all devices. For understanding multiple supporting screens you have to read http://developer.android.com/guide/practices/screens_support.html

xxxhdpi: 1280x1920 px
xxhdpi: 960x1600 px
xhdpi: 640x960 px
hdpi: 480x800 px
mdpi: 320x480 px
ldpi: 240x320 px

这篇关于Android:支持所有设备的背景图像大小(以像素为单位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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