SizeRequirements sr = new SizeRequirements(); int pref = baselineRequirements(axis, sr).preferred; return (float) pref;
if (!isLayoutValid(axis)) { if (axis == myAxis) requirements[axis] = calculateMajorAxisRequirements(axis, requirements[axis]); else requirements[axis] = calculateMinorAxisRequirements(axis, requirements[axis]); } return requirements[axis].preferred;
  public float getPreferredSpan(int axis)  {    SizeRequirements sr = new SizeRequirements();    int pref = baselineRequirements(axis, sr).preferred;    return (float) pref;  }