Code example for Button

Methods: setEnabled

0
	} 
 
	public void afterTextChanged(Editable s) {
		try { 
			XMPPHelper.verifyJabberID(s);
			okButton.setEnabled(true);
			userInputField.setTextColor(XMPPHelper.getEditTextColor(mMainWindow));
		} catch (YaximXMPPAdressMalformedException e) {
			okButton.setEnabled(false);
			userInputField.setTextColor(Color.RED);
		} 
	} 
 
	public void beforeTextChanged(CharSequence s, int start, int count,
			int after) {
 
	} 
 
	public void onTextChanged(CharSequence s, int start, int before, int count) {
 
Connect your IDE to all the code out there  Get Codota for Java