EasyCalendar icon indicating copy to clipboard operation
EasyCalendar copied to clipboard

Calendar height varies with month swipes

Open droidstered opened this issue 7 years ago • 6 comments

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.

droidstered avatar Jan 29 '18 10:01 droidstered

If you want the height of the calendar to be the same,you should use calendarView.setScaleEnable(false);

shichaohui avatar Jan 30 '18 07:01 shichaohui

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.

droidstered avatar Jan 30 '18 07:01 droidstered

The height of date is dynamic calculation by calendar's width.

You can set monthBackground to CanlendarView for resolve separator like activity_action

shichaohui avatar Jan 30 '18 08:01 shichaohui

Ok. Thanks. So calendar height will be dynamic as per month change?

droidstered avatar Jan 30 '18 08:01 droidstered

You should set wrap_content to the height of CanlendarView. android:layout_height="wrap_content"

shichaohui avatar Jan 30 '18 08:01 shichaohui

I have already set height of CanlendarView to wrap_content

droidstered avatar Jan 30 '18 09:01 droidstered