Question

How to make a button unclickable, except after checking a radio button?

Was it helpful?

Solution

If the button is called myButton try using

myButton.setEnabled(false);

Then you can add some type of listener to your radio button and in that listener add

myButton.setEnabled(true);

Also, you can check out the android:clickable attribute in xml.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top