Source/sources/android/support/p003v7/widget/AlertDialogLayout.java
public void onLayout(boolean changed, int left, int top, int right, int bottom) {
        int childTop;
        int dividerHeight;
        int childLeft;
        int paddingLeft = getPaddingLeft();
        int width = right - left;
        int childRight = width - getPaddingRight();
        int childSpace = (width - paddingLeft) - getPaddingRight();
        int totalLength = getMeasuredHeight();
        int count = getChildCount();
        int gravity = getGravity();
        int minorGravity = gravity & GravityCompat.RELATIVE_HORIZONTAL_GRAVITY_MASK;
        switch (gravity & 112) {
            case 16:
                childTop = getPaddingTop() + (((bottom - top) - totalLength) / 2);
                break;
            case 80:
                childTop = ((getPaddingTop() + bottom) - top) - totalLength;
                break;
            default:
                childTop = getPaddingTop();
                break;
        }
        Drawable dividerDrawable = getDividerDrawable();
        if (dividerDrawable == null) {
            dividerHeight = 0;
        } else {
            dividerHeight = dividerDrawable.getIntrinsicHeight();
        }
        for (int i = 0; i < count; i++) {
            View child = getChildAt(i);
            if (!(child == null || child.getVisibility() == 8)) {
                int childWidth = child.getMeasuredWidth();
                int childHeight = child.getMeasuredHeight();
                LayoutParams lp = (LayoutParams) child.getLayoutParams();
                int layoutGravity = lp.gravity;
                if (layoutGravity < 0) {
                    layoutGravity = minorGravity;
                }
                switch (GravityCompat.getAbsoluteGravity(layoutGravity, ViewCompat.getLayoutDirection(this)) & 7) {
                    case 1:
                        childLeft = ((((childSpace - childWidth) / 2) + paddingLeft) + lp.leftMargin) - lp.rightMargin;
                        break;
                    case 5:
                        childLeft = (childRight - childWidth) - lp.rightMargin;
                        break;
                    default:
                        childLeft = paddingLeft + lp.leftMargin;
                        break;
                }
                if (hasDividerBeforeChildAt(i)) {
                    childTop += dividerHeight;
                }
                int childTop2 = childTop + lp.topMargin;
                setChildFrame(child, childLeft, childTop2, childWidth, childHeight);
                childTop = childTop2 + lp.bottomMargin + childHeight;
            }
        }
    }
/* access modifiers changed from: protected */
access modifiers changed from: protected
access modifiers changed from : protected
public void onLayout(boolean changed, int left, int top, int right, int bottom) {
        int childTop;
        int dividerHeight;
        int childLeft;
        int paddingLeft = getPaddingLeft();
        int width = right - left;
        int childRight = width - getPaddingRight();
        int childSpace = (width - paddingLeft) - getPaddingRight();
        int totalLength = getMeasuredHeight();
        int count = getChildCount();
        int gravity = getGravity();
        int minorGravity = gravity & GravityCompat.RELATIVE_HORIZONTAL_GRAVITY_MASK;
        switch (gravity & 112) {
            case 16:
                childTop = getPaddingTop() + (((bottom - top) - totalLength) / 2);
                break;
            case 80:
                childTop = ((getPaddingTop() + bottom) - top) - totalLength;
                break;
            default:
                childTop = getPaddingTop();
                break;
        }
        Drawable dividerDrawable = getDividerDrawable();
        if (dividerDrawable == null) {
            dividerHeight = 0;
        } else {
            dividerHeight = dividerDrawable.getIntrinsicHeight();
        }
        for (int i = 0; i < count; i++) {
            View child = getChildAt(i);
            if (!(child == null || child.getVisibility() == 8)) {
                int childWidth = child.getMeasuredWidth();
                int childHeight = child.getMeasuredHeight();
                LayoutParams lp = (LayoutParams) child.getLayoutParams();
                int layoutGravity = lp.gravity;
                if (layoutGravity < 0) {
                    layoutGravity = minorGravity;
                }
                switch (GravityCompat.getAbsoluteGravity(layoutGravity, ViewCompat.getLayoutDirection(this)) & 7) {
                    case 1:
                        childLeft = ((((childSpace - childWidth) / 2) + paddingLeft) + lp.leftMargin) - lp.rightMargin;
                        break;
                    case 5:
                        childLeft = (childRight - childWidth) - lp.rightMargin;
                        break;
                    default:
                        childLeft = paddingLeft + lp.leftMargin;
                        break;
                }
                if (hasDividerBeforeChildAt(i)) {
                    childTop += dividerHeight;
                }
                int childTop2 = childTop + lp.topMargin;
                setChildFrame(child, childLeft, childTop2, childWidth, childHeight);
                childTop = childTop2 + lp.bottomMargin + childHeight;
            }
        }
    }
public void onLayout ( boolean changed , int left , int top , int right , int bottom ) { int childTop ; int dividerHeight ; int childLeft ; int paddingLeft = getPaddingLeft ( ) ; int width = right - left ; int childRight = width - getPaddingRight ( ) ; int childSpace = ( width - paddingLeft ) - getPaddingRight ( ) ; int totalLength = getMeasuredHeight ( ) ; int count = getChildCount ( ) ; int gravity = getGravity ( ) ; int minorGravity = gravity & GravityCompat . RELATIVE_HORIZONTAL_GRAVITY_MASK ; switch ( gravity & 112 ) { case 16 : childTop = getPaddingTop ( ) + ( ( ( bottom - top ) - totalLength ) / 2 ) ; break ; case 80 : childTop = ( ( getPaddingTop ( ) + bottom ) - top ) - totalLength ; break ; default : childTop = getPaddingTop ( ) ; break ; } Drawable dividerDrawable = getDividerDrawable ( ) ; if ( dividerDrawable == null ) { dividerHeight = 0 ; } else { dividerHeight = dividerDrawable . getIntrinsicHeight ( ) ; } for ( int i = 0 ; i < count ; i ++ ) { View child = getChildAt ( i ) ; if ( ! ( child == null || child . getVisibility ( ) == 8 ) ) { int childWidth = child . getMeasuredWidth ( ) ; int childHeight = child . getMeasuredHeight ( ) ; LayoutParams lp = ( LayoutParams ) child . getLayoutParams ( ) ; int layoutGravity = lp . gravity ; if ( layoutGravity < 0 ) { layoutGravity = minorGravity ; } switch ( GravityCompat . getAbsoluteGravity ( layoutGravity , ViewCompat . getLayoutDirection ( this ) ) & 7 ) { case 1 : childLeft = ( ( ( ( childSpace - childWidth ) / 2 ) + paddingLeft ) + lp . leftMargin ) - lp . rightMargin ; break ; case 5 : childLeft = ( childRight - childWidth ) - lp . rightMargin ; break ; default : childLeft = paddingLeft + lp . leftMargin ; break ; } if ( hasDividerBeforeChildAt ( i ) ) { childTop += dividerHeight ; } int childTop2 = childTop + lp . topMargin ; setChildFrame ( child , childLeft , childTop2 , childWidth , childHeight ) ; childTop = childTop2 + lp . bottomMargin + childHeight ; } } }
access modifiers changed from: protected
access modifiers changed from : protected