I\'m using Spinner,EditText and Button in one page.The spinner has these items ...
Following:
String[] Items = {
\"Alarm\",
\"O
I assume that you get the value from the Spinner.
After getting the value using condition u set the edittext enabled or disabled through this code:
EditText.setEnabled(BooleanValue);
true is default value and false set the edittext disabled.
Do this,
EditText edit = (EditText) findViewById(R.id.EditText01);
edit.setEnabled(false);
edit.setInputType(InputType.TYPE_NULL);
edit.setFocusable(false);
And when any other option selected do this,
edit.setEnabled(true);
edit.setInputType(InputType.TYPE_CLASS_TEXT);
edit.setFocusable(true);