[英]How do I make a context menu for a webview?
I want to make a context menu for a webview in my app. 我想在我的应用程序中为Webview创建上下文菜单。 I want that when the user does a long click on a link, a context menu will popup.
我希望当用户长时间单击链接时,将弹出一个上下文菜单。 Something like this (the left picture, and instead of of listview I want a webview):
像这样的东西(左图,而不是列表视图,我想要一个网络视图):
Thanx upfront. 预先感谢。
You have a wide range of options to choose from : PopupWindow , ListPopupWindow , and PopupMenu 您可以选择多种选项: PopupWindow , ListPopupWindow和PopupMenu
Reference : Android custom Overflow-menu (Without actionbar and no menubutton) 参考: Android自定义溢出菜单(没有操作栏,没有菜单按钮)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.