I currently have a button that generates a popup menu and I'm trying to find a way to detect when an item within the menu has been long clicked. Once I detect the user has clicked and held on the menu item I want to prompt them to ask if they wish to delete the item.
I understand how to programatically remove menu items, ala the post here: remove popup menu item programmatically. The problem i'm having is detecting the long click on a menu item.
As far as I know there is no setMenuOnItemLongClickListener(), only a setMenuOnItemClickListener(), so am I left to make a custom solution to detect long clicks on popupmenu items?