Android custom option menu item

喜欢而已 提交于 2019-11-30 17:50:16

问题


everyone! I have question for Android guys. Any help or suggestion will be appreciated.

So my problem:

I have application with ActionBarCompat and in this action bar I have a lot of different hiden menu items, which appear only if user click on menu button at action bar. Also I have couple menu items at action bar, which always visible.

I need some customization for one of visible menu item. When user click on this menu item (let's say it would be "Add new" menu item), I need to show different menu in this case. And if user click on standart menu item, it should act like usually.

So I really confused. And I have no idea how I can do it. Maybe someone had the same problem or similar. Thank you!

Screenshot for better understanding:

来源:https://stackoverflow.com/questions/22152289/android-custom-option-menu-item

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!