简体   繁体   English

有没有办法在 Cordova-Android 11+ 中仍然拥有全屏启动图像?

[英]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. 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.这似乎意味着我们现在需要在应用程序中使用一个图标来加载 Splash。

Do we have the ability to still use a full-screen image that we had done with previous versions of Android?我们是否仍然能够使用以前版本的 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.使用cordova-res时,它会为不同的屏幕尺寸/密度生成一些单独的文件,所以我不确定是否有类似的工具可以帮助为项目创建单独的屏幕图像。

No, and this is because of Android .不,这是因为 Android

The splash screen icon uses the same specifications as Adaptive icons, as follows:闪屏图标使用与自适应图标相同的规范,如下:

Branded image: This should be 200×80 dp.品牌形象:这应该是 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.带有图标背景的应用程序图标:这应该是 240×240 dp,并且适合直径为 160 dp 的圆圈。 App icon without an icon background: This should be 288×288 dp, and fit within a circle of 192 dp in diameter.没有图标背景的应用程序图标:这应该是 288×288 dp,并且适合直径为 192 dp 的圆圈。

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

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