简体   繁体   中英

open context menu when click on custom listview specific row item

i use base adapter for populate listview , in my listview row one button . i want to show context menu on button clicked . registerForContextMenu() method is not working in adapter and also OnCreateContextMenu() also not working in this class.

I have search on Google and did not find a solution.

How do I solve this?

我认为,您可以使用对话框启动上下文菜单。

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