If I open the context menu on a listview item (long press) the context menu will open, after which the user can press one of the menu options (context actions), like for example "Delete" or "Cancel".
What I like to achieve is to handle the event of when the context menu is opened. So not the event of when the user has chosen / pressed an option.
Why?
If I have selected listview item X (which then gets a different "selected" color) and then open the context menu on listview item Y (so a different one), that one also gets a selected color. Now there are 2 items selected which is confusing for the user: "which item will be affected by the context menu?".
So in the desired event handler I want to de-select the other item (in this example X) and only select Y (on which I opened the context menu) and/or give Y an other background color.
Can this be done?
NB: I don't need a solution for iOS as iOS uses a swipe menu, which by design clearly shows on which item you will perform the action.