简体   繁体   中英

Android splash screens as images

I want to make image as a splash screen. What sizes should I make to make splash screen image fill whole screen without stretching supporting horizontal and vertical orientations and all densities. Also where should I write code to indicate which images are splash screens for each size and orientation?

iOS has that kind of feature to select launch images in the properties to set all required image sizes to support all screens and all orientations,without writing any lines of code 在此处输入图片说明

You need to use 9-patch. 9-patch images can stretch in 4 directions if you want. It will solve your problem. Xamarin can also use 9-patch images as splash screen.

Example Documentation

您可以使用可能对iOS和Android都有用的矢量资产图像作为参考: https : //developer.android.com/studio/write/vector-asset-studio.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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