Android应用的全屏图片尺寸是多少? (Android Studio)

时间:2016-08-21 17:40:42

标签: android android-layout android-studio background-image

我在活动中有背景图片,其大小设置为1280x920,正如Background image crashes android中所述。这非常有效。

我还有全屏幕活动(粘性沉浸式),配置相同,图像垂直“拉伸”。应该是图像的大小,以便根本没有缩放或拉伸? (当图像占据全屏时,偏离正轨)

2 个答案:

答案 0 :(得分:1)

取决于屏幕。 Android支持多个屏幕。在项目中我们有x-hdpi,hdpi,xx-hdpi文件夹。作为来源:

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

https://developer.android.com/training/multiscreen/screensizes.html

答案 1 :(得分:0)

没有一个尺寸。每个Android设备都有不同的屏幕尺寸。您需要做的是提供多种尺寸,并在奇数尺寸的设备上接受一些拉伸或收缩。有关更多建议,请参阅https://developer.android.com/guide/practices/screens_support.html

相关问题