res.maximum = 0;
res.maximum = Integer.MAX_VALUE;
  protected SizeRequirements calculateMinorAxisRequirements(int axis,                                                           SizeRequirements sr)  {    SizeRequirements res = sr;    if (res == null)      res = new SizeRequirements();    res.minimum = 0;    res.preferred = 0;    res.maximum = 0;    res.alignment = 0.5F;    int n = getViewCount();    for (int i = 0; i < n; i++)      {        View child = getView(i);        res.minimum = Math.max((int) child.getMinimumSpan(axis), res.minimum);        res.preferred = Math.max((int) child.getPreferredSpan(axis),                                 res.preferred);        res.maximum = Math.max((int) child.getMaximumSpan(axis), res.maximum);      }    return res;  }