문제

I want DatePicker shows a specific date when opened, unfortunately seems I can set only the date limits with setMinDate and setMaxDate.

Is there a way to set a date without block the selection with date limits?

도움이 되었습니까?

해결책

DatePicker date = new DatePicker(context);  
date.init(year, month, day, null);

where year, month and day are ints. Here is an explanation about init

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top