【发布时间】:2014-02-19 14:54:50
【问题描述】:
如何删除在 phonegap 构建中的应用程序开始时显示一秒钟左右的标题栏? 我尝试了全屏,如Phonegap remove title bar at start 所示,它的工作,应用程序是全屏的,但标题栏在应用程序开始时仍然显示一秒钟左右。 在本地构建时,我可以使用命令 android:theme="@android:style/Theme.NoTitleBar">
删除标题栏表单 manifest.xml如何从 phonegap build 中完全删除标题栏?
我通过将这些行添加到 config.xml 来解决它
<gap:config-file platform="android" parent="/manifest">
<supports-screens
android:xlargeScreens="false"
android:largeScreens="false"
android:smallScreens="false" />
<application android:theme="@android:style/Theme.NoTitleBar" >
<activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen" ></activity>
</application>
</gap:config-file>
【问题讨论】:
-
拜托!有人可以分享他对此的想法吗?我相信每个人都有这个问题,我在网上搜索了几个小时没有成功......这个问题解决了吗?还是一般?
-
我也面临同样的问题!有没有办法解决这个问题??
-
我添加了 [gap:config-file platform="android" parent="/manifest"] [application android:theme="@android:style/Theme.NoTitleBar" ] [activity android:theme ="@android:style/Theme.NoTitleBar.Fullscreen" ][/activity] [/application] [/gap:config-file] 到我的 config.xml -> 小部件部分,但它不起作用。和以前一样!请问有人可以分享一下吗?
标签: cordova phonegap-plugins phonegap-build cordova-3