Open badoualy opened 7 years ago
@badoualy on init, when we set the date, can the view center that particular date?
@badoualy on init, when we set the date, can the view center that particular date?
You can do it by yourself:
date.setFirstVisibleDate(now.getYear() - 1, Calendar.JANUARY, 1); date.setLastVisibleDate(now.getYear() + 2, Calendar.DECEMBER, 1); date.setSelectedDate(now.getYear(), now.getMonthOfYear() - 1, now.getDayOfMonth()); date.setFollowScroll(false);
Where date is the datepicker e now in DateTime.now() of JodaTime
The alignment is not perfect, sometimes the offset is a bit off