Code example for DatePicker

Methods: setEnabled

0
    	otherDate = (RadioButton) dialogView.findViewById(R.id.dialog_specific_date_button);
    	 
    	//Set up listeners for radios. When "next class" is selected we want to disable the picker 
    	nextClass.setOnClickListener(new OnClickListener() {
			public void onClick(View arg0) {
				datePicker.setEnabled(false);
			} 
    	}); 
    	otherDate.setOnClickListener(new OnClickListener() {
			public void onClick(View arg0) {
				datePicker.setEnabled(true);
			} 
    	}); 
    	datePicker.setEnabled(false);
    	 
		builder.setView(dialogView)
			.setPositiveButton("Finish", new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog, int id) {					
					if(nextClass.isChecked()) {
						callback.onNextClassSelected();
					} else {