In Android I can set a button to be enabled or disabled by doing the following:
button.setEnabled(true); or button.setEnabled(false);
How do I check whether the button enabled state is true or false?
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.
Reading the manual every now and then doesn’t hurt:
http://developer.android.com/reference/android/view/View.html#isEnabled%28%29
Example: