Code example for AlertDialog

Methods: getButton

0
        okButton.setEnabled(!TextUtils.isEmpty(mEdit.getText().toString().trim()));
    } 
 
    @Override 
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {
    } 
 
    @Override 
    public void onTextChanged(CharSequence s, int start, int before, int count) {
    } 
}