2017-02-01 62 views
0

當我設置圖像在ldpi,mdpi等..格式。它不是在Android的mobile.when工作我給默認閃屏無需格式它working.i不知道我錯did.please檢查並回復我..初始屏幕不能在電話版本構建

<plugin name="cordova-plugin-splashscreen" source="npm" spec="~4.0.1" /> 
<platform name="android"> 
    <icon density="ldpi" src="www/res/icon/android/drawable-ldpi-icon.png" /> 
    <icon density="mdpi" src="www/res/icon/android/drawable-mdpi-icon.png" /> 
    <icon density="hdpi" src="www/res/icon/android/drawable-hdpi-icon.png" /> 
    <icon density="xhdpi" src="www/res/icon/android/drawable-xhdpi-icon.png" /> 
    <icon density="xxhdpi" src="www/res/icon/android/drawable-xxhdpi-icon.png" /> 
    <icon density="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi-icon.png" /> 
<splash density="port-ldpi" src="www/res/screen/android/drawable-port-ldpi-screen.png" /> 
    <splash density="port-mdpi" src="www/res/screen/android/drawable-port-mdpi-screen.png" /> 
    <splash density="port-hdpi" src="www/res/screen/android/drawable-port-hdpi-screen.png" /> 
    <splash density="port-xhdpi" src="www/res/screen/android/drawable-port-xhdpi-screen.png" /> 
    <splash density="port-xxhdpi" src="www/res/screen/android/drawable-port-xxhdpi-screen.png" /> 
    <splash density="port-xxxhdpi" src="www/res/screen/android/drawable-port-xxxhdpi-screen.png" /> 

    <splash src="www/res/screen/android/drawable-land-ldpi-screen.png"/>(this screen only it's taking)   

</platform> 

<preference name="SplashScreenDelay" value="5000" /> 
<preference name="AutoHideSplashScreen" value="true" /> 
<preference name="ShowSplashScreenSpinner" value="false"/> 
<preference name="SplashScreen" value="screen"/> 
+0

請參閱http://docs.phonegap.com/phonegap-build/configuring/icons-and-splash/#splashes –

回答

0

您的默認開機畫面必須駐留在應用程序文件夾的根目錄。它的必須命名爲splash.png

你會那麼像這樣引用它:

<splash src="splash.png" /> 

這個要求是針對PhonegapBuild。