sulo61 / HorizontalExpandableCalendar-Android

Android Expandable Calendar
61 stars 19 forks source link

Want to update RANGE_MONTHS_BEFORE_INIT in my activity #18

Open Kunnu123 opened 6 years ago

Kunnu123 commented 6 years ago

Hello, I Want to update RANGE_MONTHS_BEFORE_INIT in my activity and then refresh calender.

RANGE_MONTHS_BEFORE_INIT is dynamic for me. So is it possible to update it dynamically ??

sulo61 commented 6 years ago

It's public static, so it can't be more easy to edit :) then call invalidate() or requestLayout() on calendar view to redraw it from scratch

Kunnu123 commented 6 years ago

Hello, Thanks for the reply. I try with your solution but it's not working

horizontalExpCalendar = (HorizontalExpCalendar) view.findViewById(R.id.calendar); Config.RANGE_MONTHS_BEFORE_INIT = 4; horizontalExpCalendar.invalidate(); horizontalExpCalendar.requestLayout();

Thanks & Regards, Krunal Pujara

On 27 June 2018 at 20:10, MikeSu notifications@github.com wrote:

It's public static, so it can't be more easy to edit :) then call invalidate() or requestLayout() on calendar view to redraw it from scratch

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sulo61/HorizontalExpandableCalendar-Android/issues/18#issuecomment-400697161, or mute the thread https://github.com/notifications/unsubscribe-auth/AQNkIfgZB7nywx3Df_EovXQDcTQJTh8eks5uA5lVgaJpZM4U5ggX .