car/src/main/java/androidx/car/app/CarAlertDialog.java
private void updateButtonPanelTopMargin() {
        boolean hasBody = mBodyView.getVisibility() == View.VISIBLE;

        ViewGroup.MarginLayoutParams layoutParams =
                (ViewGroup.MarginLayoutParams) mButtonPanel.getLayoutParams();

        // Separate the action panel with a top margin if there's body text. Otherwise, do not have
        // any margin.
        layoutParams.topMargin = hasBody ? mButtonPanelTopMargin : 0;

        mButtonPanel.requestLayout();
    }
/**
     * Updates the top margin of the button panel depending on if there's body text. If there is,
     * then separate the body text from the button panel with margin specified by
     * {@link #mButtonPanelTopMargin}. Otherwise, no margin.
     */
Updates the top margin of the button panel depending on if there's body text. If there is,
then separate the body text from the button panel with margin specified by
#mButtonPanelTopMargin. Otherwise, no margin.
Updates the top margin of the button panel depending on if there ' s body text . If there is then separate the body text from the button panel with margin specified by #mButtonPanelTopMargin . Otherwise no margin .
private void updateButtonPanelTopMargin() {
        boolean hasBody = mBodyView.getVisibility() == View.VISIBLE;
        ViewGroup.MarginLayoutParams layoutParams =
                (ViewGroup.MarginLayoutParams) mButtonPanel.getLayoutParams();
        layoutParams.topMargin = hasBody ? mButtonPanelTopMargin : 0;
        mButtonPanel.requestLayout();
    }
private void updateButtonPanelTopMargin ( ) { boolean hasBody = mBodyView . getVisibility ( ) == View . VISIBLE ; ViewGroup . MarginLayoutParams layoutParams = ( ViewGroup . MarginLayoutParams ) mButtonPanel . getLayoutParams ( ) ; layoutParams . topMargin = hasBody ? mButtonPanelTopMargin : 0 ; mButtonPanel . requestLayout ( ) ; }
Updates the top margin of the button panel depending on if there's body text.
Updates the top margin of the button panel depending on if there ' s body text .
// Separate the action panel with a top margin if there's body text. Otherwise, do not have // any margin.