Code example for AlertDialog

Methods: getButton

0
            } 
 
            @Override 
            public void afterTextChanged(Editable s) {
                if (mPositiveButton == null) {
                    mPositiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);
                } 
                mPositiveButton.setEnabled(s.toString().trim().length() > 0);
            } 
        }); 
 
        return dialog;
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java