I need create DatePicker programmatically. And i can\'t use xml layout. i know set spinner in xml datePickerMode=\"spinner\"
and then i can use datePicker.set
If you want to set it programmatically you can you the below code but I haven't checked this code whether its working or not. Let me know if I can help you in any other way.
datepickerDialog_object.getDatePicker().setSpinnersShown(true);
datepickerDialog_object.getDatePicker().setCalendarViewShown(false);