Source/sources/android/support/p003v7/widget/ButtonBarLayout.java
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int initialWidthMeasureSpec;
        int widthSize = MeasureSpec.getSize(widthMeasureSpec);
        if (this.mAllowStacking) {
            if (widthSize > this.mLastWidthSize && isStacked()) {
                setStacked(false);
            }
            this.mLastWidthSize = widthSize;
        }
        boolean needsRemeasure = false;
        if (isStacked() || MeasureSpec.getMode(widthMeasureSpec) != 1073741824) {
            initialWidthMeasureSpec = widthMeasureSpec;
        } else {
            initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, Integer.MIN_VALUE);
            needsRemeasure = true;
        }
        super.onMeasure(initialWidthMeasureSpec, heightMeasureSpec);
        if (this.mAllowStacking && !isStacked()) {
            if ((getMeasuredWidthAndState() & -16777216) == 16777216) {
                setStacked(true);
                needsRemeasure = true;
            }
        }
        if (needsRemeasure) {
            super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        }
        int minHeight = 0;
        int firstVisible = getNextVisibleChildIndex(0);
        if (firstVisible >= 0) {
            View firstButton = getChildAt(firstVisible);
            LayoutParams firstParams = (LayoutParams) firstButton.getLayoutParams();
            minHeight = 0 + getPaddingTop() + firstButton.getMeasuredHeight() + firstParams.topMargin + firstParams.bottomMargin;
            if (isStacked()) {
                int secondVisible = getNextVisibleChildIndex(firstVisible + 1);
                if (secondVisible >= 0) {
                    minHeight += getChildAt(secondVisible).getPaddingTop() + ((int) (16.0f * getResources().getDisplayMetrics().density));
                }
            } else {
                minHeight += getPaddingBottom();
            }
        }
        if (ViewCompat.getMinimumHeight(this) != minHeight) {
            setMinimumHeight(minHeight);
        }
    }
/* access modifiers changed from: protected */
access modifiers changed from: protected
access modifiers changed from : protected
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int initialWidthMeasureSpec;
        int widthSize = MeasureSpec.getSize(widthMeasureSpec);
        if (this.mAllowStacking) {
            if (widthSize > this.mLastWidthSize && isStacked()) {
                setStacked(false);
            }
            this.mLastWidthSize = widthSize;
        }
        boolean needsRemeasure = false;
        if (isStacked() || MeasureSpec.getMode(widthMeasureSpec) != 1073741824) {
            initialWidthMeasureSpec = widthMeasureSpec;
        } else {
            initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, Integer.MIN_VALUE);
            needsRemeasure = true;
        }
        super.onMeasure(initialWidthMeasureSpec, heightMeasureSpec);
        if (this.mAllowStacking && !isStacked()) {
            if ((getMeasuredWidthAndState() & -16777216) == 16777216) {
                setStacked(true);
                needsRemeasure = true;
            }
        }
        if (needsRemeasure) {
            super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        }
        int minHeight = 0;
        int firstVisible = getNextVisibleChildIndex(0);
        if (firstVisible >= 0) {
            View firstButton = getChildAt(firstVisible);
            LayoutParams firstParams = (LayoutParams) firstButton.getLayoutParams();
            minHeight = 0 + getPaddingTop() + firstButton.getMeasuredHeight() + firstParams.topMargin + firstParams.bottomMargin;
            if (isStacked()) {
                int secondVisible = getNextVisibleChildIndex(firstVisible + 1);
                if (secondVisible >= 0) {
                    minHeight += getChildAt(secondVisible).getPaddingTop() + ((int) (16.0f * getResources().getDisplayMetrics().density));
                }
            } else {
                minHeight += getPaddingBottom();
            }
        }
        if (ViewCompat.getMinimumHeight(this) != minHeight) {
            setMinimumHeight(minHeight);
        }
    }
public void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { int initialWidthMeasureSpec ; int widthSize = MeasureSpec . getSize ( widthMeasureSpec ) ; if ( this . mAllowStacking ) { if ( widthSize > this . mLastWidthSize && isStacked ( ) ) { setStacked ( false ) ; } this . mLastWidthSize = widthSize ; } boolean needsRemeasure = false ; if ( isStacked ( ) || MeasureSpec . getMode ( widthMeasureSpec ) != 1073741824 ) { initialWidthMeasureSpec = widthMeasureSpec ; } else { initialWidthMeasureSpec = MeasureSpec . makeMeasureSpec ( widthSize , Integer . MIN_VALUE ) ; needsRemeasure = true ; } super . onMeasure ( initialWidthMeasureSpec , heightMeasureSpec ) ; if ( this . mAllowStacking && ! isStacked ( ) ) { if ( ( getMeasuredWidthAndState ( ) & - 16777216 ) == 16777216 ) { setStacked ( true ) ; needsRemeasure = true ; } } if ( needsRemeasure ) { super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ; } int minHeight = 0 ; int firstVisible = getNextVisibleChildIndex ( 0 ) ; if ( firstVisible >= 0 ) { View firstButton = getChildAt ( firstVisible ) ; LayoutParams firstParams = ( LayoutParams ) firstButton . getLayoutParams ( ) ; minHeight = 0 + getPaddingTop ( ) + firstButton . getMeasuredHeight ( ) + firstParams . topMargin + firstParams . bottomMargin ; if ( isStacked ( ) ) { int secondVisible = getNextVisibleChildIndex ( firstVisible + 1 ) ; if ( secondVisible >= 0 ) { minHeight += getChildAt ( secondVisible ) . getPaddingTop ( ) + ( ( int ) ( 16.0f * getResources ( ) . getDisplayMetrics ( ) . density ) ) ; } } else { minHeight += getPaddingBottom ( ) ; } } if ( ViewCompat . getMinimumHeight ( this ) != minHeight ) { setMinimumHeight ( minHeight ) ; } }
access modifiers changed from: protected
access modifiers changed from : protected