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:
Put setClickable after setOnClickListener
mBtn.setOnClickListener(this); mBtn.setClickable(false);
if you put setClickable(false) before setOnClickListener(this), it doesn't work.