I am setting the OnClickListener off after the user has clicked on the button.
confirm.setOnClickListener(null);
This makes the button unclickable but I want it to be clickable after the user has clicked another button.
How can I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just set
confirm.setClickable(false);to disable andconfirm.setClickable(true)to enable it again.See Here