Android : Splash screen only works with the default

on Monday, March 30, 2015


Here is another question about the splash. I have this config.xml, my question is just why the splashscreen only works when i set this:



<gap:splash src="splashoriginal.png" />


Basically the gap:splash is not working, because i am getting always the default. So, all stuff below in <platform name="android"> is ignored.


I have the res folder at the same level of config.xml. Like



/www/res/screen/android/*.png
/www/config.xml


The landscape will stretch the default splash. In other words, the only thing that works is the default splash.





<?xml version="1.0" encoding="UTF-8"?>

<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.helloworld"
version = "1.0.0">

<content src="index.html" />

<gap:plugin name="org.apache.cordova.splashscreen" />

<gap:splash src="splashoriginal.png" />

<platform name="android">
<gap:splash src="res/screen/android/ldpi-portrait.png" gap:platform="android" gap:qualifier="port-ldpi" />
<gap:splash src="res/screen/android/mdpi-portrait.png" gap:platform="android" gap:qualifier="port-mdpi" />
<gap:splash src="res/screen/android/hdpi-portrait.png" gap:platform="android" gap:qualifier="port-hdpi" />
<gap:splash src="res/screen/android/xhdpi-portrait.png" gap:platform="android" gap:qualifier="port-xhdpi" />

<gap:splash src="res/screen/android/ldpi-landscape.png" gap:platform="android" gap:qualifier="land-ldpi" />
<gap:splash src="res/screen/android/mdpi-landscape.png" gap:platform="android" gap:qualifier="land-mdpi" />
<gap:splash src="res/screen/android/hdpi-landscape.png" gap:platform="android" gap:qualifier="land-hdpi" />
<gap:splash src="res/screen/android/xhdpi-landscape.png" gap:platform="android" gap:qualifier="land-xhdpi" />
</platform>
</widget>

0 comments:

Post a Comment