SizeRequirements.calculateTiledPositions(targetSpan, requirements[axis], childReqs[axis], offsets, spans);
long diff = targetSpan - sumPref; float factor = 0.0F; int[] diffs = null; if (diff != 0) { long total = 0; diffs = new int[n]; for (int i = 0; i < n; i++) { View child = getView(i); int span; if (diff < 0) { span = (int) child.getMinimumSpan(axis); diffs[i] = spans[i] - span; } else { span = (int) child.getMaximumSpan(axis); diffs[i] = span - spans[i]; } total += span; }
  protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets,                                 int[] spans)  {    updateChildRequirements(axis);    updateRequirements(axis);    // Calculate the spans and offsets using the SizeRequirements uility    // methods.    SizeRequirements.calculateTiledPositions(targetSpan, requirements[axis],                                             childReqs[axis],                                             offsets, spans);  }