HorizontalExpandableCalendar-Android icon indicating copy to clipboard operation
HorizontalExpandableCalendar-Android copied to clipboard

Want to update RANGE_MONTHS_BEFORE_INIT in my activity

Open Kunnu123 opened this issue 6 years ago • 2 comments

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 ??

Kunnu123 avatar Jun 27 '18 11:06 Kunnu123

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

sulo61 avatar Jun 27 '18 14:06 sulo61

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 [email protected] 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 .

Kunnu123 avatar Jun 30 '18 06:06 Kunnu123