Search code examples
javaandroidandroid-calendar

Material Calendar View Height wrapping issue


I am using material calendarview which blocks 3/4 of screen height. I customized screen height but still it have some padding between day tiles and height of calendarview.

Below i attached a screenshot how is looking now:

enter image description here


Solution

  • Finally i found, after the long time effort work on libs at onMeasure() method.

    measuredHeight = (int)(measuredHeight/1.5);
    setMeasuredDimension(
                //We clamp inline because we want to use un-clamped versions on the children
                clampSize(measuredWidth, widthMeasureSpec),
                clampSize(measuredHeight, heightMeasureSpec));