<Custom Options Menu item does not trigger `onOpti...
# stackoverflow
u
Custom Options Menu item does not trigger `onOptionsItemSelected` when clicked In my top AppBar options menu I needed an custom menu item, so I defined it like so in my Fragment: override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { menu.add(Menu.NONE, 0, Menu.NONE, R.string.share) .setActionView(R.layout.menu_item_share_button) .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS) menu.add(Menu.NONE, 1, Menu.NONE, R.string.settings) .setIcon(R.drawable.bootstrap_icon_gear_fill)...