Code example for DatePicker

Methods: setEnabled

0
			public void onClick(View v) {
				if (sendNow.isChecked()) {
					addResult.setEnabled(true);
					now = true;
					sendLater.setChecked(false);
					dp.setEnabled(false);
					tm.setEnabled(false);
 
				} else { 
					addResult.setEnabled(false);
				} 
			} 
		}); 
 
		sendLater.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				if (sendLater.isChecked()) {
					addResult.setEnabled(true);
					now = false;
					sendNow.setChecked(false);
Stop searching for code, let great code find you!  Add Codota to your java IDE