public void initAllDayHeights(){
  if (mMaxAlldayEvents <= mMaxUnexpandedAlldayEventCount) {
    return;
  }
  if (mShowAllAllDayEvents) {
    int maxADHeight=mViewHeight - DAY_HEADER_HEIGHT - MIN_HOURS_HEIGHT;
    maxADHeight=Math.min(maxADHeight,(int)(mMaxAlldayEvents * MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT));
    mAnimateDayEventHeight=maxADHeight / mMaxAlldayEvents;
  }
 else {
    mAnimateDayEventHeight=(int)MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT;
  }
}

public void initAllDayHeights ( ) { if ( mMaxAlldayEvents <= mMaxUnexpandedAlldayEventCount ) { return ; } if ( mShowAllAllDayEvents ) { int maxADHeight = mViewHeight - DAY_HEADER_HEIGHT - MIN_HOURS_HEIGHT ; maxADHeight = Math . min ( maxADHeight , ( int ) ( mMaxAlldayEvents * MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT ) ) ; mAnimateDayEventHeight = maxADHeight / mMaxAlldayEvents ; } else { mAnimateDayEventHeight = ( int ) MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT ; } }
figures out the initial heights for allday events and space when a view is being set up .
