datepicker-timeline
datepicker-timeline copied to clipboard
Offset is off when setFollowScroll is enabled
The alignment is not perfect, sometimes the offset is a bit off
@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