简体   繁体   English

Android活动图片背景大小

[英]Android activity image background size

I am a bit confused on creating an image which will be acting as a background for my activities. 我对创建一个将作为我的活动背景的图像感到困惑。 So, in short, my aim is that my application should be able to fit the different screen sizes. 因此,简而言之,我的目标是我的应用程序应该能够适应不同的屏幕尺寸。 Therefore, what size in pixel should my three images be to be able to fill the screen of the device in ldpi, mdpi and hdpi? 因此,如果我的三个图像能够以ldpi,mdpi和hdpi填充设备的屏幕,像素的大小是多少?

Thank you for any response. 谢谢你的回复。

In ldpi -folder, the recommended size is 240x320. ldpi -folder中,建议的大小为240x320。

In mdpi -folder, the recommended size is 320x480. mdpi -folder中,建议的大小为320x480。

In hdpi -folder, the recommended size is 480x800. hdpi夹中,建议的大小为480x800。

More information about this subject can be found here . 有关此主题的更多信息,请访问此处

ldpi 240x320. ldpi 240x320。

mdpi 320x480. mdpi 320x480。

hdpi 480x800. hdpi 480x800。

xhdpi 640*960. xhdpi 640 * 960。

xxhdpi 960x1440. xxhdpi 960x1440。


updated Jan,09,2016 2016年1月9日更新

                            ldpi     mdpi     hdpi     xhdpi    xxhdpi     xxxhdpi
Launcher And Home           36*36    48*48   72*72    96*96    144*144    192*192
Action Bar And Tab          24*24    32*32   48*48    64*64    96*96      128*128
Notification                18*18    24*24   36*36    48*48    72*72      96*96
Background                  240*320  320*480 480*800 768*1280 1080 *1920  1440*2560

updated Sep,23,2016 2016年9月23日更新

@CDrosos thanks. @CDrosos谢谢。

This is helpful also: Device Metrics - design.google.com/devices 这也很有用:设备指标 - design.google.com/devices

04 / 2013 : I have read another specifications in android developers 04/2013:我已经阅读了Android开发人员的另一个规范

xlarge screens are at least 960dp x 720dp large screens are at least 640dp x 480dp normal screens are at least 470dp x 320dp small screens are at least 426dp x 320dp xlarge屏幕至少960dp x 720dp大屏幕至少640dp x 480dp正常屏幕至少470dp x 320dp小屏幕至少426dp x 320dp

http://developer.android.com/guide/practices/screens_support.html http://developer.android.com/guide/practices/screens_support.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM