car/src/main/java/androidx/car/app/CarAlertDialog.java
private void initializeViews() {
        Window window = getWindow();

        mContentView = window.findViewById(R.id.content_view);
        mTitleView = window.findViewById(R.id.title);
        mBodyView = window.findViewById(R.id.body);

        mButtonPanel = window.findViewById(R.id.button_panel);
        mButtonPanelTouchDelegate = new ButtonPanelTouchDelegate(mButtonPanel);
        mButtonPanel.setTouchDelegate(mButtonPanelTouchDelegate);

        mPositiveButton = window.findViewById(R.id.positive_button);
        mNegativeButton = window.findViewById(R.id.negative_button);

        mPositiveButton.setOnClickListener(v -> onPositiveButtonClick());
        mNegativeButton.setOnClickListener(v -> onNegativeButtonClick());
    }
/**
     * Initializes the views within the dialog that are modifiable based on the data that has been
     * set on it. Also responsible for hooking up listeners for button clicks.
     */
Initializes the views within the dialog that are modifiable based on the data that has been
set on it. Also responsible for hooking up listeners for button clicks.
Initializes the views within the dialog that are modifiable based on the data that has been set on it . Also responsible for hooking up listeners for button clicks .
private void initializeViews() {
        Window window = getWindow();
        mContentView = window.findViewById(R.id.content_view);
        mTitleView = window.findViewById(R.id.title);
        mBodyView = window.findViewById(R.id.body);
        mButtonPanel = window.findViewById(R.id.button_panel);
        mButtonPanelTouchDelegate = new ButtonPanelTouchDelegate(mButtonPanel);
        mButtonPanel.setTouchDelegate(mButtonPanelTouchDelegate);
        mPositiveButton = window.findViewById(R.id.positive_button);
        mNegativeButton = window.findViewById(R.id.negative_button);
        mPositiveButton.setOnClickListener(v -> onPositiveButtonClick());
        mNegativeButton.setOnClickListener(v -> onNegativeButtonClick());
    }
private void initializeViews ( ) { Window window = getWindow ( ) ; mContentView = window . findViewById ( R . id . content_view ) ; mTitleView = window . findViewById ( R . id . title ) ; mBodyView = window . findViewById ( R . id . body ) ; mButtonPanel = window . findViewById ( R . id . button_panel ) ; mButtonPanelTouchDelegate = new ButtonPanelTouchDelegate ( mButtonPanel ) ; mButtonPanel . setTouchDelegate ( mButtonPanelTouchDelegate ) ; mPositiveButton = window . findViewById ( R . id . positive_button ) ; mNegativeButton = window . findViewById ( R . id . negative_button ) ; mPositiveButton . setOnClickListener ( v -> onPositiveButtonClick ( ) ) ; mNegativeButton . setOnClickListener ( v -> onNegativeButtonClick ( ) ) ; }
Initializes the views within the dialog that are modifiable based on the data that has been
 set on it.
Initializes the views within the dialog that are modifiable based on the data that has been set on it .