if (sr == null) sr = new SizeRequirements(); else { sr.maximum = 0; sr.minimum = 0; sr.preferred = 0; sr.alignment = 0.5F; }  int count = getViewCount();   for (int i = 0; i < count; ++i) { View child = getView(i); sr.minimum += child.getMinimumSpan(axis); sr.preferred += child.getPreferredSpan(axis); sr.maximum += child.getMaximumSpan(axis); } return sr;
SizeRequirements[] childReqs = getChildRequirements(axis); return SizeRequirements.getTiledSizeRequirements(childReqs);
  protected SizeRequirements calculateMajorAxisRequirements(int axis,                                                           SizeRequirements sr)  {    if (sr == null)      sr = new SizeRequirements();    else      {        sr.maximum = 0;        sr.minimum = 0;        sr.preferred = 0;        sr.alignment = 0.5F;      }    int count = getViewCount();    // Sum up the sizes of the children along the specified axis.    for (int i = 0; i < count; ++i)      {        View child = getView(i);        sr.minimum += child.getMinimumSpan(axis);        sr.preferred += child.getPreferredSpan(axis);        sr.maximum += child.getMaximumSpan(axis);      }    return sr;  }