I have set mButton.setClickable(false); in my code but still this button is invoked by global button.setOnClickListener of my code.
mButton.setClickable(false);
button.setOnClickListener
EDIT:
You can check like if(!view.isClickable()) return;