I am using an ActionMenuView to display set of filters that the user can select.
After selecting a menu item in the ActionMenuView, I want this menu item to be highlighted until another menu item has been selected.
How do I keep the highlight of the menu item once it has been clicked?
The desired result occurs when i put a breakpoint in the onMenuItemClick function, it is as follows:
EDIT Solved the problem, see my answer below

I managed to do this by modifying the icons of the
ActionMenuViewusinglayer-list(no highlight by default):using the following
ActionmenuView:After an icon in the
ActionMenuViewis selected, I clear all highlights of the icons in theActionMenuViewand set the highlight of the currently selected icon. The methods are as follows:With the drawable listed above, usage would be as follows:
A color with an alpha value of 50 is considered a highlight, while a color with an alpha value of 0 is not visible and thus clears the highlight