简体   繁体   中英

How do I make a context menu for a webview?

I want to make a context menu for a webview in my app. 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

Reference : Android custom Overflow-menu (Without actionbar and no menubutton)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM