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;
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE