How to set different handlers on click event for a button in a SupportActionBar.CustomView

Hi all.
I creating app for Android and use a customview for a SupportActionBar and there is a button in it. Also there are fragments in app and I need to set different handlers for click event on different fragments. Now I set handlers but when I open another fragment, handler from previous fragment was set and was called with new handler. How can I set correctly handlers or clear click event for a button? Thanks.

Sign In or Register to comment.