child.measure(MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.EXACTLY),
MeasureSpec.makeMeasureSpec(child.getMeasuredHeight(),
MeasureSpec.EXACTLY));</BUG>
}
<BUG>flexLine.mMainSize += child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin;
} else {</BUG>
if (!mChildrenFrozen[childIndex]) {
float rawCalculatedHeight = child.getMeasuredHeight()
- unitShrink * lp.flexShrink;
if (i == flexLine.mItemCount - 1) {

child.measure(MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.EXACTLY),
childHeightMeasureSpec);
}
flexLine.mMainSize += child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin;
flexLine.mCrossSize = Math.max(flexLine.mCrossSize, child.getMeasuredHeight());
} else {
if (!mChildrenFrozen[childIndex]) {
float rawCalculatedHeight = child.getMeasuredHeight()
- unitShrink * lp.flexShrink;
if (i == flexLine.mItemCount - 1) {
