Code example for DatePicker

Methods: setVisibility

0
		boolean on = enableDeadLine.isChecked();
		if (on){
			datePicker.setVisibility(View.VISIBLE);
			timePicker.setVisibility(View.VISIBLE);
		} else { 
			datePicker.setVisibility(View.INVISIBLE);
			timePicker.setVisibility(View.INVISIBLE);
		} 
	} 
	 
	public void cancelCheckList(View view){
		finish();
	} 
	 
	public void saveCheckList(View view){
		CheckListOpenHelper opener = new CheckListOpenHelper(this);
		String name = editName.getText().toString();
		String desc = editDescription.getText().toString();
		if (name !=  ""){
			CheckList checklist = new CheckList(name,desc);
			opener.insertCheckList(checklist);