如何在 Cordova 应用程序中启用标题栏?
Posted
技术标签:
【中文标题】如何在 Cordova 应用程序中启用标题栏?【英文标题】:How to enable title bar in Cordova Application? 【发布时间】:2015-07-18 04:37:20 【问题描述】:以下是我的代码...我无法在我的应用程序中启用标题栏。 如何启用它? 配置.xml
<widget id="com.example.hello" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="loglevel" value="DEBUG" />
<feature name="Whitelist">
<param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin" />
<param name="onload" value="true" />
</feature>
<allow-intent href="market:*" />
<name>HelloWorld</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
</widget>
我试过这个..
<preference name="Fullscreen" value="false">
但它不起作用...仍然以全屏模式显示活动...如何禁用该全屏并显示标题栏?
【问题讨论】:
【参考方案1】:在配置文件中添加这两行
preference name="fullscreen" value="false"
preference name="showtitle" value="true"
【讨论】:
以上是关于如何在 Cordova 应用程序中启用标题栏?的主要内容,如果未能解决你的问题,请参考以下文章
如何在 iOS 8 上的 Cordova / PhoneGap 应用程序中隐藏键盘表单附件栏? [复制]
如何在 Visual Studio 2013 中为 Cordova 应用程序启用断点
如何在 IOS 7 的 cordova 2.9.0 中删除状态栏?