PhoneGap的&安培;科尔多瓦 - 如何删除默认的启动画面? [英] Phonegap & Cordova - How to remove default splash screen?

查看:143
本文介绍了PhoneGap的&安培;科尔多瓦 - 如何删除默认的启动画面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我用来启动我的应用程序,它会显示常见的启动画面:<一href=\"https://www.google.com/search?biw=1366&bih=667&tbm=isch&sa=1&q=cordova%20android%20splash%20screen&oq=cordova%20android%20splash%20screen&gs_l=img.3...3442.4414.0.4584.0.0.0.0.0.0.0.0..0.0....0...1c.1.64.img..0.0.0.HlLmVH4tGUs#imgrc=HJeAimnld9GDKM%3A\" rel=\"nofollow\">https://www.google.com/search?biw=1366&bih=667&tbm=isch&sa=1&q=cordova+android+splash+screen&oq=cordova+android+splash+screen&gs_l=img.3...3442.4414.0.4584.0.0.0.0.0.0.0.0..0.0....0...1c.1.64.img..0.0.0.HlLmVH4tGUs#imgrc=HJeAimnld9GDKM%3A

When I used to start up my app, it would show the common splash screen: https://www.google.com/search?biw=1366&bih=667&tbm=isch&sa=1&q=cordova+android+splash+screen&oq=cordova+android+splash+screen&gs_l=img.3...3442.4414.0.4584.0.0.0.0.0.0.0.0..0.0....0...1c.1.64.img..0.0.0.HlLmVH4tGUs#imgrc=HJeAimnld9GDKM%3A

现在看来它切断了图像的顶部约1/10,并与它涵盖了屏幕的最初几秒钟,然后我的应用程序启动正常,像这样:

Now it seems it cuts off about 1/10th of the top of the image and covers the screen with it for the initial few seconds, THEN my app starts normally, like so:

闪屏

我一直忽略了它,直到我完成了应用程序,现在我几乎做了发布,并希望解决这个问题。

I have been ignoring it until I finished the app, now I am nearly done publishing and wish to fix this issue.

我不知道是否有一种方法可以完全取出的启动画面。我试图从RES / XML移除图片和添加

I was wondering if there is a way to take out the splash screen entirely. I tried removing the pictures from res/xml and adding

<preference name="SplashScreen" value="none"/>

但不工作

这是一个Android应用程序。

This is for an android app.

我要使它适用于iOS后不久,我完成并发布针对Android,因此,如果它们是不同的平台不同的方法,请提供。

I am going to make it for iOS soon after I finish and publish for android, so if they are different methods for different platforms, please include.

推荐答案

尝试用这个命令删除闪屏插件:

Try removing the splashscreen plugin with this command:

cordova plugin remove cordova-plugin-splashscreen

这篇关于PhoneGap的&安培;科尔多瓦 - 如何删除默认的启动画面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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