Open muneebahmed97 opened 3 years ago
Just call select()
right below init()
, passing as parameter the same value you had setted in the pastDaysCount
field.
it's showing by deafult "1st of the month" not the current day and date
Assuming that you have the index/position of today
singleRowCalendar?.select(14)
singleRowCalendar?.scrollToPosition(12)
Here, 14 is the index of today - 14 pre | today | 14 post - in my application
why 2 less in scrollToPosition
, well, there are 5 on my design that can show, and scrollToPosition
brings it to the beginning. You can adjust according to your needs and don't ask to scroll out of ranges.
I have implemented your library in my project. can anybody please tell me how can I mark current date selected? TIA :)