Click on the item of listview can contextmenu, can click on, but after clicking rewrite onContextitemSelected events inside the code is not running, give advice or comments,
CodePudding user response:
When you create a contextmenu contextmenu. Add after the return of menuitem object, set the setOnMenuItemClickListener method directlyCodePudding user response: