toolbar menu item click in fragments
I know this question has been asked and but I am unable to solve my problem after looking at those answer. I have an Activity with a Fragment. In fragment, I have added the toolbar and I want to handle toolbar menu item click events from the fragments. In menu, I have added a single share button. I am getting the click event callback for the Up navigation (arrow home button) but I am not getting click event callback for the share button in my fragment. Can some points me at what I am doing wrong here. menu.xml <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/