【发布时间】:2013-01-28 10:42:52
【问题描述】:
我应该在config.xml 中输入什么,或者我一般应该怎么做,才能让PhoneGap Build 应用程序的启动屏幕在Android 设备上以横向模式正确显示?
PhoneGap Build(用于编译)docs / blog 对此一无所知。 Android 仅涵盖肖像。
因为首先(文档)说使用height 和width 是支持跨平台的,所以我尝试使用它:
<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" />
但没有任何效果——在我的 Android 设备上的横向模式下,我总是看到我的初始屏幕的 strechead portait 模式版本很糟糕。
【问题讨论】:
标签: cordova landscape phonegap-build splash-screen