Pergunta

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

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top