Code example for ImageButton

Methods: setEnabled

0
            } 
        }); 
        mTextField.addTextChangedListener(new TextWatcher(){
            @Override 
            public void afterTextChanged(Editable text){
                mReplyButton.setEnabled(!isEmpty());
            } 
            @Override 
            public void beforeTextChanged(CharSequence s, int start, int count, int after){
                // noop 
            } 
            @Override 
            public void onTextChanged(CharSequence s, int start, int before, int count){
                // noop 
            } 
        }); 
    } 
}