What should I enter to config.xml
or what should I do in general, to have PhoneGap Build application's splash screen displayed correctly on Android device in landscape mode?
PhoneGap Build (used to compile) docs / blog have nothing on this. Only Portrait is covered for Android.
Since first (docs) says that using height
and width
is cross-platform supported, I tried to use it:
<gap:splash src="res/splash-200x320-android.png" gap:platform="android" gap:density="ldpi" width="200" height="320" />
<gap:splash src="res/splash-320x480-android-bada-ios.png" gap:platform="android" gap:density="mdpi" width="320" height="480" />
<gap:splash src="res/splash-480x800-android-bada-wp.png" gap:platform="android" gap:density="hdpi" width="480" height="800" />
<gap:splash src="res/splash-720x1280-android.png" gap:platform="android" gap:density="xhdpi" width="720" height="1280" />
<gap:splash src="res/splash-320x200-android.png" gap:platform="android" gap:density="ldpi" width="320" height="200" />
<gap:splash src="res/splash-480x320-android-bada-ios.png" gap:platform="android" gap:density="mdpi" width="480" height="320" />
<gap:splash src="res/splash-800x480-android-bada-wp.png" gap:platform="android" gap:density="hdpi" width="800" height="480" />
<gap:splash src="res/splash-1280x720-android.png" gap:platform="android" gap:density="xhdpi" width="1280" height="720" />
But there is no effect -- in landscape mode on my Android device I always see badly strechead portait mode version of my splash screen.
config.xml
only. You don't have abillity to use pure Java code in PhoneGap Build apps, don't you? – Halonna