简体   繁体   中英

Is there a way to still have full-screen Splash images in Cordova-Android 11+?

It appears that starting with Android 11, you are now required to include a AndroidWindowSplashScreenAnimatedIcon preference in your Cordova config.xml that includes a path to a path to a png/xml file and the <splash> tags are no longer supported.

This appears to mean that we are now required to use an icon for the Splash loading in the app.

Do we have the ability to still use a full-screen image that we had done with previous versions of Android?

When using cordova-res it would generate some individual files for different screen sizes/densities, so I wasn't sure if there was a similar tool to help create an individual screen image for the project.

No, and this is because of Android .

The splash screen icon uses the same specifications as Adaptive icons, as follows:

Branded image: This should be 200×80 dp. App icon with an icon background: This should be 240×240 dp, and fit within a circle of 160 dp in diameter. App icon without an icon background: This should be 288×288 dp, and fit within a circle of 192 dp in diameter.

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