Android上的Cordova全屏启动屏幕仍显示标题栏 [英] Cordova fullscreen splash screen on Android still shows title bar
问题描述
我正在使用最新的cordova创建全屏应用程序. 我已经添加了初始屏幕图像和它的插件.并且在config.xml中,以全屏模式启动应用程序的首选项
I am creating a fullscreen app using latest cordova. I have added the splash screen images and the plugin for it. And also in the config.xml, the preference to launch the app in fullscreen
<preference name="Fullscreen" value="true" />
<preference name="Orientation" value="landscape" />
<preference name="SplashScreenDelay" value="1000" />
在运行该应用程序时,会显示启动屏幕,但问题是该应用程序仍在顶部显示标题栏,直到该应用程序完成显示初始屏幕为止,该应用程序最终将在其中显示进入真正的全屏.
When running the app, the splash screen shows up, but the problem is that the app still shows the title bar on top, until the app finishes showing the splash screen, where the app finally goes into true full screen.
是否有一种方法/标记/修改来使在显示初始屏幕时全屏正常工作?
Is there a way/flag/mod to make the fullscreen work correctly while splash screen is displayed?
推荐答案
显示全屏启动画面的最佳方法是将该行放在清单中的活动标记下
The best way to show a full screen splash is by putting this line in your manifest under activity tag
android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"
这篇关于Android上的Cordova全屏启动屏幕仍显示标题栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!