Is it possible to have a date/time picker that has a Cancel/Set options in place of a single Set command. My usecase is that when i click on the date picker and the field is not mandatory, i might want to clear the selected value. My code looks something like this :
private DatePickerDialog datePicker = null;
datePicker = new DatePickerDialog(getContext(), new DateSetListener(), year, monthOfYear, dayOfMonth);
I would use a simple Dialog and within it include a DateTimePicker and the SET and CANCEL buttons or any other king of functionality you would like to include
Another UI/X solution you can implement is to show the DateTimePicker on demand (user clicking a button for example)
There is an issue with the DatePickerDialog and the TimePickerDialog (Issue #34833). We could use a counter as a work-around to get rid of this issue.
I know Its Late a solution (i don't want any one waste time on this)for this may look like this.. (Thanks to https://stackoverflow.com/users/642161/dmon)