Android 活动图像背景大小 [英] Android activity image background size

查看:17
本文介绍了Android 活动图像背景大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对创建一个将作为我的活动背景的图像有点困惑.所以,简而言之,我的目标是我的应用程序应该能够适应不同的屏幕尺寸.因此,我的三幅图像应该是多大的像素才能以 ldpi、mdpi 和 hdpi 填满设备的屏幕?

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-文件夹中,推荐大小为240x320.

In ldpi-folder, the recommended size is 240x320.

mdpi-文件夹中,推荐大小为320x480.

In mdpi-folder, the recommended size is 320x480.

hdpi-文件夹中,推荐大小为480x800.

In hdpi-folder, the recommended size is 480x800.

可以在此处找到有关此主题的更多信息.

More information about this subject can be found here.

这篇关于Android 活动图像背景大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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