Android custom menu item

everything! I have a question for Android guys. Any help or suggestion would be appreciated.

So my problem is:

I have an application with ActionBarCompat, and in this action bar I have many different hidden menu items that appear only if the user clicks the menu button on the action bar. I also have a couple of menu items on the action bar that are always visible.

I need a setting for one of the visible menu items. When the user clicks on this menu item (let it be the "Add New" menu item), in this case I need to show another menu. And if the user clicks on the standard menu item, he should act as usual.

So I was really embarrassed. And I have no idea how I can do this. Maybe someone had the same problem or something like that. Thank!

Screenshot for a better understanding:

+4
source share

Source: https://habr.com/ru/post/1529843/


All Articles