Phonegap Android 显示标题栏
我试图让 Phonegap 在我的 Android 应用程序中显示标题栏。从我在网上看到的情况来看,默认情况下它应该这样做,而且人们在实际隐藏它时遇到了麻烦 - 但就我而言,它默认情况下是隐藏的,并且仅在应用程序加载时显示。一旦加载了index.html,标题栏就会消失。
根据教程创建的空白项目也会发生这种情况。我缺少什么?
I am trying to make Phonegap show a titlebar in my Android application. From what I've seen around the net, it should do that by default and people are having trouble actually hiding it - but in my case it is hidden by default and only shows while the app is loading. Once index.html is loaded, titlebar disappears.
This also happens on a blank project created according a tutorial. What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,尝试在“res\layout\main.xml”中使用您自己的布局更新 UI,这样就可以包含本机工具栏,然后在下面..您的 webview(您的应用程序):)祝您好运!
hmm try to update the UI with you own layout at "res\layout\main.xml" that way to can include a native toolbar, then below.. you webview (you app) :) good luck!