科尔多瓦Android的黑色闪屏 [英] Cordova android black splashscreen
本文介绍了科尔多瓦Android的黑色闪屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发起与下面的config.xml香草科尔多瓦Android应用还没有在Android设备上启动屏幕为3秒的黑色,然后应用程序显示出来。我怎么splash.png是显示了作为一个闪屏3秒钟?
图片 < XML版本='1.0'编码='UTF-8'&GT?;
<控件ID =com.ambieye.shine版本=0.0.1的xmlns =http://www.w3.org/ns/widgets的xmlns:CDV =http://cordova.apache.org /ns/1.0\">
<名称>&闪耀LT; /名称>
<描述> ...< /描述>
<作者的电子邮件=... @ gmail.comHREF =http://website.com>
< /笔者>
<内容SRC =的index.html/>
<获得原产=*/>
<图标SRC =WWW /苹果触摸icon- precomposed.png/> < preference NAME =SplashScreenDelayVALUE =10000/>
< preference NAME =闪屏VALUE =应用程序/网络/图像/ splash.png/>
< preference NAME =SplashScreenDelayVALUE =10000/>
<飞溅SRC =应用程序/网络/图像/ splash.png/>
<平台名称=机器人>
<吊钩式=before_buildSRC =钩/ ioscopywww.cmd/>
<! - 你可以使用一个存在于Android项目的密度 - > <飞溅SRC =应用程序/网络/图像/ splash.png密度=土地华电国际/>
<飞溅SRC =应用程序/网络/图像/ splash.png密度=土地LDPI/>
<飞溅SRC =应用程序/网络/图像/ splash.png密度=土地MDPI/>
<飞溅SRC =应用程序/网络/图像/ splash.png密度=土地xhdpi/>
应用程序/
<飞溅SRC =应用程序/网络/图像/ splash.png密度=港华电国际/>
<飞溅SRC =应用程序/网络/图像/ splash.png密度=港LDPI/>
<飞溅SRC =应用程序/网络/图像/ splash.png密度=港MDPI/>
<飞溅SRC =应用程序/网络/图像/ splash.png密度=港xhdpi/>
< /平台> <平台名称=IOS>
<吊钩式=before_buildSRC =钩/ ioscopywww.sh/>
&所述;! - 图像是由宽度和高度来确定。支持以下 - >
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =320HEIGHT =480/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =640HEIGHT =960/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =768HEIGHT =1024/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =1536HEIGHT =720/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =1024HEIGHT =768/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =720HEIGHT =640/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =640HEIGHT =1136/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =750HEIGHT =1334/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =1242HEIGHT =2208/>
<飞溅SRC =应用程序/网络/图像/ splash.pngWIDTH =2208HEIGHT =1242/>
< /平台>
< /部件>
解决方案
答案是邪恶的屏幕
:
< preference NAME =闪屏VALUE =画面/>
I'm launching a vanilla cordova android app with the following config.xml yet the launching screen on the android device is 3 seconds black, then the app shows up. How do I get splash.png to be the image that shows up as a splash screen for 3 seconds?
<?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>
解决方案
Answer was the evil screen
:
<preference name="SplashScreen" value="screen" />
这篇关于科尔多瓦Android的黑色闪屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文