Problem : I'm doing
registerForContextMenu(list);
And everything is good, except ;
Problem : I want to trigger an action when the contextMenu is dismissed. How can I have a listener if the user dismiss the contextMenu ?
Thanks.
You can override the method:
@Override
public void onContextMenuClosed(Menu menu) {
super.onContextMenuClosed(menu);
}
and do whatever you want to :)
Good luck, Arkde
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With