EasyCalendar
EasyCalendar copied to clipboard
Calendar height varies with month swipes
My calendar height is going to vary for different months while swipe.
For decemeber 2017 month the height is different. I have used following method to overcome with it but none of them are working for me.
calendarView.setCanDrag(false);
calendarView.setScaleEnable(true);
calendarView.setShowOverflowDate(true);
calendarView.setCanFling(false);
Also, I have applied divider between dates. It works well too but the one issue is there is no separator between week layout and calendar. Instead of separator is showing at bottom which no need.
Thanks.
If you want the height of the calendar to be the same,you should use calendarView.setScaleEnable(false);
I have already used that. But the issue is that i am using this calendar in ScrollView and seems calendar height is now looking too much. So because of that my above fixed layout of 250dp height become small.
Also, I have applied divider between dates. It works well too but the one issue is there is no separator between week layout and calendar. Instead of separator is showing at bottom which no need.
The height of date is dynamic calculation by calendar's width.
You can set monthBackground to CanlendarView for resolve separator like activity_action
Ok. Thanks. So calendar height will be dynamic as per month change?
You should set wrap_content to the height of CanlendarView.
android:layout_height="wrap_content"
I have already set height of CanlendarView to wrap_content