横向和纵向图像PhoneGap的BUILD闪屏? [英] Landscape and portrait images for phonegap BUILD splash screen?

查看:218
本文介绍了横向和纵向图像PhoneGap的BUILD闪屏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是否有可能有2个独立的图像中的PhoneGap构建应用程序的启动画面?一个用于potrait,一个景观。

I wondered if it was possible to have 2 seperate images in a phonegap build app for the splash screen? One for potrait and one for landscape.

目前,当我打开应用程序,它会显示启动画面,如果我改变方向,它pixelates: - (

At the moment, when I open the app, it displays the splash screen and if i change orientation, it pixelates :-(

我的那一刻得到了这个在config.xml文件...

I've got this in the config.xml file at the moment...

<gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" width="320" height="480"/>
<gap:splash src="splash/android/mdpi.png" gap:platform="android" gap:density="mdpi" width="960" height="640"/>
<gap:splash src="splash/android/hdpi.png" gap:platform="android" gap:density="hdpi" width="768" height="1024"/>
<gap:splash src="splash/android/ldpi2.png" gap:platform="android" gap:density="ldpi"/>
<gap:splash src="splash/android/mdpi2.png" gap:platform="android" gap:density="mdpi"/>
<gap:splash src="splash/android/hdpi2.png" gap:platform="android" gap:density="hdpi"/>

在年底的2图像风景的人与那些没有为肖像的。

The images with the 2 on the end are the landscape ones and the ones without are the portrait ones.

有人告诉我,把宽度和高度值在人像的人,然后在默认情况下,它会采取那些没有价值的景观之一。这并没有发生。

I was told to put the width and height values in the portrait ones and then by default, it would take the ones without values as the landscape one. This didn't happen.

任何帮助是完全AP preciated,

Any help is fully appreciated,

感谢你。

推荐答案

这是我最后怎么定与PhoneGap的构建[V3.3.0] Android应用程序。 新增config.xml中的这些行。 注意:请给出确切的图像名称和照顾宽度和hieght的

This is how I finally fixed for android app with phonegap build [v3.3.0]. Added these lines in config.xml. Note: Please give exact name for the image and take care of width and hieght.

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

<gap:splash src="res/screen/android/splash/screen-ldpi-landscape.png"  gap:platform="android" gap:density="ldpi" width="320" height="200"  gap:qualifier="land-ldpi"/>
<gap:splash src="res/screen/android/splash/screen-mdpi-landscape.png"  gap:platform="android" gap:density="mdpi" width="480" height="320"  gap:qualifier="land-mdpi"/>
<gap:splash src="res/screen/android/splash/screen-hdpi-landscape.png"  gap:platform="android" gap:density="hdpi" width="800" height="480"  gap:qualifier="land-hdpi"/>
<gap:splash src="res/screen/android/splash/screen-xhdpi-landscape.png" gap:platform="android" gap:density="xhdpi" width="1280" height="720"  gap:qualifier="land-xhdpi"/>

这篇关于横向和纵向图像PhoneGap的BUILD闪屏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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