Code example for Button

Methods: setEnabled

0
				        	etScreenName.getText().toString())
				    && StringUtil.isEquals(user.getDescription(),
				    		etDescription.getText().toString())) {
			btnProfileUpdate.setEnabled(false);
		} else { 
			btnProfileUpdate.setEnabled(true);
		} 
	} 
 
	public void setUser(User user) {
		this.user = user;
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java