科尔多瓦/ PhoneGap的9个补丁闪屏 [英] Cordova/PhoneGap 9-patch splash screen

查看:219
本文介绍了科尔多瓦/ PhoneGap的9个补丁闪屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个9片图像( splash.9.png ),我想我的科尔多瓦(3.4.0)的应用程序的启动画面使用。如果我从Eclipse运行(科尔多瓦)Android项目,一切都因为它应该是,即会出现闪屏,只有拉伸区域捉襟见肘。但是,如果我跑使用命令行界面的应用程序,整个启动画面被拉伸/变形,仿佛科尔多瓦不认为这是一个9片图像,但作为一个普通巴纽。我有以下的在我的config.xml中规定:

I have a 9-patch image (splash.9.png) I'd like to use as my Cordova (3.4.0) app splash screen. If I run the (Cordova) Android project from Eclipse, everything is as it's supposed to be, i.e. the splash screen appears and only the stretchable areas are stretched. However, if I run the app using the command line interface, the entire splash screen is stretched/deformed, as if Cordova doesn't see it as a 9-patch image, but as a regular .png. I have the following specified in my config.xml:

<preference name="SplashScreen" value="splash" />
<preference name="SplashScreenDelay" value="5000" />

还有其它任何需要进行设置?任何其他线索?在此先感谢!

Is there anything else that needs to be set? Any other clues? Thanks in advance!

推荐答案

看来你一定要命名形象splash.9.png(和做平台/安卓/科尔多瓦/下一个构建之前干净)。这为我工作最少。

It seems that you have to name image as splash.9.png (and do platform/android/cordova/clean before next build). That worked for me at least.

这篇关于科尔多瓦/ PhoneGap的9个补丁闪屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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