float max; if (axis == myAxis) max = getPreferredSpan(axis);
updateRequirements(axis);  float margin; if (axis == X_AXIS) margin = getLeftInset() + getRightInset();
  public float getMaximumSpan(int axis)  {    float max;        if (axis == myAxis)      max = getPreferredSpan(axis);    else      max = Integer.MAX_VALUE;    return max;  }