2017-01-15 4 views
0

コードバプロジェクトのスプラッシュスクリーンをカスタマイズしたいと思います。ここ はconfig.xmlファイル内の私の挿入されたコードは、スプラッシュスクリーンカスタマイズしてくださいアンドロイドプラットフォームのコードボードスプラッシュスクリーン

<preference name = "SplashScreen" value = "screen" /> 
<preference name = "SplashScreenDelay" value = "3000" /> 
<preference name = "SplashMaintainAspectRatio" value = "true" /> 
<splash src="/HelloworldProject/splashimages/splash.png"platform="android" width="720" height="1280" /> 

私はここに私のapp.Anyヘルプを実行したときに、私はすべての変更を見ることができないを変更することがありますか?

答えて

0

は、これらの提案を試してみてください:platformの前にスペースがあるはずのよう

  1. が見えます。
  2. SplashScreenプリファレンスは、そのsrcファイルの値を持つ必要があります。ないscreen

(具体的cordova apache docsをモデルにした)、これを試してみてください:

<preference name="SplashScreen" value="/HelloworldProject/splashimages/splash.png" /> <!-- defaults to "/img/logo.png" --> 
<preference name="SplashScreenDelay" value="3000" /> <!-- defaults to "3000" --> 
<preference name = "SplashMaintainAspectRatio" value = "true" /> 
<splash src="/HelloworldProject/splashimages/splash.png" width="720" height="1280" /> 

したい場合は、あなたがname="android"platformタグ内splashタグを入れることができます:

<platform name="android"> 
     <splash density="land-ldpi" src="/HelloworldProject/splashimages/splash.png" /> 
</platform> 
関連する問題