Tôi nên nhập gì vào config.xml
hoặc tôi nên làm gì nói chung, để màn hình splash của ứng dụng PhoneGap Build hiển thị chính xác trên thiết bị Android ở chế độ ngang?Màn hình splash ngang cho Android trong PhoneGap Build
PhoneGap Build (được sử dụng để biên dịch) docs/blog không có gì về điều này. Chỉ Portrait được bao phủ cho Android.
Kể từ đầu tiên (tài liệu) nói rằng việc sử dụng height
và width
được cross-nền tảng được hỗ trợ, tôi đã cố gắng sử dụng nó:
<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" />
Nhưng không có hiệu lực thi hành - trong chế độ phong cảnh trên thiết bị Android của tôi, tôi luôn xem phiên bản chế độ portait kém kỹ lưỡng của màn hình giật gân của tôi.
Rõ ràng điều này được theo dõi [ở đây] (https://github.com/phonegap/build/issues/198) –