gpt4 book ai didi

android - Cordova android 黑色启动画面

转载 作者:行者123 更新时间:2023-11-29 15:55:13 24 4
gpt4 key购买 nike

我正在使用以下 config.xml 启动一个 vanilla cordova android 应用程序,但 android 设备上的启动屏幕是黑色的 3 秒,然后该应用程序出现了。如何让 splash.png 成为显示为初始屏幕 3 秒的图像?

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.ambieye.shine" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Shine</name>
<description>...</description>
<author email="...@gmail.com" href="http://website.com">
</author>
<content src="index.html" />
<access origin="*" />
<icon src="www/apple-touch-icon-precomposed.png" />

<preference name="SplashScreenDelay" value="10000" />
<preference name="SplashScreen" value="app/www/images/splash.png" />
<preference name="SplashScreenDelay" value="10000" />
<splash src="app/www/images/splash.png" />
<platform name="android">
<hook type="before_build" src="hooks/ioscopywww.cmd" />
<!-- you can use any density that exists in the Android project -->

<splash src="app/www/images/splash.png" density="land-hdpi"/>
<splash src="app/www/images/splash.png" density="land-ldpi"/>
<splash src="app/www/images/splash.png" density="land-mdpi"/>
<splash src="app/www/images/splash.png" density="land-xhdpi"/>
app/
<splash src="app/www/images/splash.png" density="port-hdpi"/>
<splash src="app/www/images/splash.png" density="port-ldpi"/>
<splash src="app/www/images/splash.png" density="port-mdpi"/>
<splash src="app/www/images/splash.png" density="port-xhdpi"/>
</platform>

<platform name="ios">
<hook type="before_build" src="hooks/ioscopywww.sh" />
<!-- images are determined by width and height. The following are supported -->
<splash src="app/www/images/splash.png" width="320" height="480"/>
<splash src="app/www/images/splash.png" width="640" height="960"/>
<splash src="app/www/images/splash.png" width="768" height="1024"/>
<splash src="app/www/images/splash.png" width="1536" height="2048"/>
<splash src="app/www/images/splash.png" width="1024" height="768"/>
<splash src="app/www/images/splash.png" width="2048" height="1536"/>
<splash src="app/www/images/splash.png" width="640" height="1136"/>
<splash src="app/www/images/splash.png" width="750" height="1334"/>
<splash src="app/www/images/splash.png" width="1242" height="2208"/>
<splash src="app/www/images/splash.png" width="2208" height="1242"/>
</platform>
</widget>

最佳答案

答案是邪恶的screen:

<preference name="SplashScreen" value="screen" />

关于android - Cordova android 黑色启动画面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28390970/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com