Home > Mobile >  Invalid onContextItemSelected events
Invalid onContextItemSelected events

Time:10-02


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 directly

CodePudding user response:

reference 1st floor Mayxizi response:
you when creating contextmenu contextmenu. After add the returned menuitem object, directly set setOnMenuItemClickListener method

Set the menuitem? , why not contextitem
  • Related