Loading core/java/android/widget/LinearLayout.java +6 −2 Original line number Diff line number Diff line Loading @@ -890,7 +890,9 @@ public class LinearLayout extends ViewGroup { remainingWeightSum -= childWeight; final int childHeight; if (lp.height == 0 && (!mAllowInconsistentMeasurement if (mUseLargestChild && heightMode != MeasureSpec.EXACTLY) { childHeight = largestChildHeight; } else if (lp.height == 0 && (!mAllowInconsistentMeasurement || heightMode == MeasureSpec.EXACTLY)) { // This child needs to be laid out from scratch using // only its share of excess space. Loading Loading @@ -1272,7 +1274,9 @@ public class LinearLayout extends ViewGroup { remainingWeightSum -= childWeight; final int childWidth; if (lp.width == 0 && (!mAllowInconsistentMeasurement if (mUseLargestChild && widthMode != MeasureSpec.EXACTLY) { childWidth = largestChildWidth; } else if (lp.width == 0 && (!mAllowInconsistentMeasurement || widthMode == MeasureSpec.EXACTLY)) { // This child needs to be laid out from scratch using // only its share of excess space. Loading Loading
core/java/android/widget/LinearLayout.java +6 −2 Original line number Diff line number Diff line Loading @@ -890,7 +890,9 @@ public class LinearLayout extends ViewGroup { remainingWeightSum -= childWeight; final int childHeight; if (lp.height == 0 && (!mAllowInconsistentMeasurement if (mUseLargestChild && heightMode != MeasureSpec.EXACTLY) { childHeight = largestChildHeight; } else if (lp.height == 0 && (!mAllowInconsistentMeasurement || heightMode == MeasureSpec.EXACTLY)) { // This child needs to be laid out from scratch using // only its share of excess space. Loading Loading @@ -1272,7 +1274,9 @@ public class LinearLayout extends ViewGroup { remainingWeightSum -= childWeight; final int childWidth; if (lp.width == 0 && (!mAllowInconsistentMeasurement if (mUseLargestChild && widthMode != MeasureSpec.EXACTLY) { childWidth = largestChildWidth; } else if (lp.width == 0 && (!mAllowInconsistentMeasurement || widthMode == MeasureSpec.EXACTLY)) { // This child needs to be laid out from scratch using // only its share of excess space. Loading