Code example for Button

Methods: setEnabled

0
 
        @Override 
        protected void onPostExecute(Boolean result) {
            CharSequence text = (result) ? "Valid!" : "NOT VALID";
            mResultText.setText(text);
            mValidateButton.setEnabled(true);
        } 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java