适用于Android的Landscape splash screen [英] Landscape splash screen for Android in PhoneGap Build

查看:262
本文介绍了适用于Android的Landscape splash screen的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该输入到 config.xml 或我应该怎么做,以使PhoneGap Build应用程序的初始屏幕在横向模式下正确显示在Android设备上? p>

PhoneGap Build(用于编译) docs / 博客对此没有任何意见。



由于第一次(docs)说使用 height width 是跨平台支持,我尝试使用它:

 < gap:splash src =res / splash-200x320-android.pnggap:platform =androidgap:density =ldpiwidth =200height =320/> 
< gap:splash src =res / splash-320x480-android-bada-ios.pnggap:platform =androidgap:density =mdpiwidth =320height =480 />
< gap:splash src =res / splash-480x800-android-bada-wp.pnggap:platform =androidgap:density =hdpiwidth =480height =800 />
< gap:splash src =res / splash-720x1280-android.pnggap:platform =androidgap:density =xhdpiwidth =720height =1280/&
< gap:splash src =res / splash-320x200-android.pnggap:platform =androidgap:density =ldpiwidth =320height =200/&
< gap:splash src =res / splash-480x320-android-bada-ios.pnggap:platform =androidgap:density =mdpiwidth =480height =320 />
< gap:splash src =res / splash-800x480-android-bada-wp.pnggap:platform =androidgap:density =hdpiwidth =800height =480 />
< gap:splash src =res / splash-1280x720-android.pnggap:platform =androidgap:density =xhdpiwidth =1280height =720/&

但是没有效果 - 在我的Android设备上的横向模式我总是看到严重的strechead portait模式

解决方案

根据我目前的知识,经过深入研究,我发现这是一个确认的错误,我们目前不能做任何事情。



PhoneGap Build(也可能是PhoneGap本身)目前不支持横向闪屏。我甚至尝试了iOS方式(如问题中所示 - 使用 width height params,官方不支持Android)。



在纵向模式下都可以,但无论你使用什么屏幕密度的Android设备,你都会看到丑陋的变形的肖像版本的闪屏。


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.

解决方案

As per my current knowledge and after deep research, I have found that this is a confirmed bug, and we currently can't do anything about this.

PhoneGap Build (and probably PhoneGap itself as well) currently does not support landscape splash screens at all. I even tried the iOS way (like shown in the question -- using width and height params, officially not supported for Android). But it still doesn't work.

All is fine in portrait mode, but no matter what screen density Android device you'll use -- in landscape you'll see ugly deformed portrait version of splash screen.

这篇关于适用于Android的Landscape splash screen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆