android webview 前进按钮
我想知道如何在 android 的私人浏览器中禁用和启用前进菜单按钮。我正在编写一个应用程序,其中显示 3 个 webview,我想合并 android 自己的浏览器选项的基本功能。到目前为止一切正常wrt 功能。唯一的问题是“前进”菜单项始终处于启用状态。我也提到了 if canGoFwd then goFwd 的条件。问题是,我单独定义了菜单项并单独编写了转发功能,问题是动态更改“转发”按钮的状态
I want to know how to disable and enable forward menu button as in android's private browser.I am writing an app where I am displaying 3 webviews and I want to incorporate the basic functionality of android's own browser options.Everything is working fine as of now w.r.t functionality. Only thing is 'forward'menu item is always enabled.I have mentioned conditoin too for if canGoFwd then goFwd. Thing is, I have defined menu items separately and wrote forward function separately, problem is dynamically changing states for 'forward' button
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
webview.xml 文件
webview.xml file