MOLO17 / CustomizableCalendar

CustomizableCalendar is a library that allows you to create your calendar, customizing UI and behaviour
MIT License
218 stars 38 forks source link

OnLongClickListener #33

Closed pachu123 closed 5 years ago

pachu123 commented 5 years ago

how do i set onLongClickListener for each date

francesco-furlan commented 5 years ago

Hi @pachu123, I think you should use the onMonthCellBindView method on your class which implements ViewInteractor. Remember to return true on the hasImplementedMonthCellBinding method otherwise the onMonthCellBindView won't be called. If you want to maintain the same cell UI and behavior then you can use this https://github.com/MOLO17/CustomizableCalendar/blob/master/library/src/main/java/com/molo17/customizablecalendar/library/adapter/MonthAdapter.java#L103-L161

Let me know if it solves your issue, thanks!