2017-06-21 82 views
0

我的配置不能强制启动屏幕出现fororoid,也许有人会建议什么可能是错误的TI?Phonegap:启动画面不显示在android

在我的config.xml中我已经在Android folling配置了闪屏:

<platform name="android"> 
    <splash gap:qualifier="port-ldpi" height="320" src="res/splash/android/port-ldpi.9.png" width="200" /> 
     <splash gap:qualifier="land-ldpi" height="200" src="res/splash/android/land-ldpi.9.png" width="320" /> 
     <splash gap:qualifier="port-mdpi" height="480" src="res/splash/android/port-mdpi.9.png" width="320" /> 
     <splash gap:qualifier="land-mdpi" height="320" src="res/splash/android/land-mdpi.9.png" width="480" /> 
     <splash gap:qualifier="port-hdpi" height="800" src="res/splash/android/port-hdpi.9.png" width="480" /> 
     <splash gap:qualifier="land-hdpi" height="480" src="res/splash/android/land-hdpi.9.png" width="800" /> 
     <splash gap:qualifier="port-xhdpi" height="1280" src="res/splash/android/port-xhdpi.9.png" width="720" /> 
     <splash gap:qualifier="land-xhdpi" height="720" src="res/splash/android/land-xhdpi.9.png" width="1280" /> 
     <splash gap:qualifier="port-xxhdpi" height="1600" src="res/splash/android/port-xxhdpi.9.png" width="960" /> 
     <splash gap:qualifier="land-xxhdpi" height="960" src="res/splash/android/land-xxhdpi.9.png" width="1600" /> 
     <splash gap:qualifier="port-xxxhdpi" height="1920" src="res/splash/android/port-xxxhdpi.9.png" width="1280" /> 
     <splash gap:qualifier="land-xxxhdpi" height="1280" src="res/splash/android/land-xxxhdpi.9.png" width="1920" /> 
    ... 
    </platform> 

我试图从配置去除widthheight,试图与刚刚qualifierdensity更换gap:qualifier,但它没”为我工作。

如果我只是把一个劲儿文件:

<platform name="android"> 
    <splash src="res/splash/android/splash.9.png" /> 

然后飞溅所示。

+0

你是否试图给你的飞溅添加延迟? ('SplashScreenDelay')? – Djiggy

回答

0

解决:在列表中有默认<splash src="res/splash/android/splash.9.png" />是必须的。另外请注意,其中应该没有widthheight属性。