chromium/chrome/browser/privacy_sandbox/android/java/res/layout/privacy_sandbox_notice_eea.xml

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/privacy_sandbox_dialog"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <org.chromium.components.browser_ui.widget.BoundedLinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:layout_gravity="center"
        app:maxWidthLandscape="@dimen/privacy_sandbox_dialog_max_width"
        app:maxWidthPortrait="@dimen/privacy_sandbox_dialog_max_width">

        <org.chromium.components.browser_ui.widget.FadingEdgeScrollView
            android:id="@+id/privacy_sandbox_dialog_scroll_view"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:fillViewport="true"
            android:layout_weight="1"
            android:visibility="invisible">

            <LinearLayout
                android:id="@+id/privacy_sandbox_notice_eea_content"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginHorizontal="@dimen/list_item_default_margin"
                android:gravity="center_vertical"
                android:orientation="vertical">

                <ImageView
                    android:layout_height="@dimen/privacy_sandbox_chrome_logo_height"
                    android:layout_width="@dimen/privacy_sandbox_chrome_logo_width"
                    android:layout_gravity="center"
                    app:srcCompat="@drawable/chrome_sync_logo"
                    android:layout_marginVertical="@dimen/privacy_sandbox_dialog_logo_margin"
                    android:importantForAccessibility="no" />

                <TextView
                    android:id="@+id/privacy_sandbox_notice_title"
                    android:layout_marginBottom="@dimen/list_item_default_margin"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:accessibilityHeading="true"
                    android:text="@string/privacy_sandbox_m1_notice_eea_title"
                    android:layout_gravity="center"
                    android:gravity="center"
                    style="@style/TextAppearance.Headline.Primary" />

                <org.chromium.ui.widget.TextViewWithLeading
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/privacy_sandbox_m1_notice_eea_description_1"
                    app:leading="@dimen/text_size_medium_leading"
                    style="@style/TextAppearance.TextMedium.Secondary" />

                <ImageView
                    android:layout_marginVertical="@dimen/privacy_sandbox_dialog_illustration_margin_vertical"
                    android:layout_height="wrap_content"
                    android:layout_width="match_parent"
                    app:srcCompat="@drawable/privacy_sandbox_notice_eea_illustration"
                    android:adjustViewBounds="true"
                    android:importantForAccessibility="no" />

                <org.chromium.ui.widget.TextViewWithLeading
                    android:id="@+id/privacy_sandbox_m1_notice_eea_bullet_one"
                    android:layout_marginBottom="@dimen/list_item_default_margin"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:leading="@dimen/text_size_medium_leading"
                    style="@style/TextAppearance.TextMedium.Secondary" />

                <org.chromium.ui.widget.TextViewWithLeading
                    android:id="@+id/privacy_sandbox_m1_notice_eea_bullet_two"
                    android:layout_marginBottom="@dimen/list_item_default_margin"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:leading="@dimen/text_size_medium_leading"
                    style="@style/TextAppearance.TextMedium.Secondary" />

                <LinearLayout
                    android:layout_marginBottom="@dimen/list_item_default_margin"
                    android:id="@+id/dropdown_element"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:orientation="horizontal">

                    <TextView
                        android:layout_weight="1"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:gravity="center_vertical"
                        android:minHeight="@dimen/privacy_sandbox_notice_dialog_dropdown_button_height"
                        android:text="@string/privacy_sandbox_m1_notice_eea_learn_more_expand_label"
                        style="@style/TextAppearance.TextMedium.Secondary" />

                    <org.chromium.ui.widget.CheckableImageView
                        android:id="@+id/expand_arrow"
                        android:layout_width="24dp"
                        android:layout_height="@dimen/privacy_sandbox_notice_dialog_dropdown_button_height"/>

                </LinearLayout>

                <LinearLayout
                    android:id="@+id/dropdown_container"
                    android:orientation="vertical"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:visibility="gone" />

                <org.chromium.ui.widget.TextViewWithLeading
                    android:layout_marginBottom="@dimen/privacy_sandbox_notice_margin_bottom"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:text="@string/privacy_sandbox_m1_notice_eea_description_2"
                    app:leading="@dimen/text_size_medium_leading"
                    style="@style/TextAppearance.TextMedium.Secondary" />

            </LinearLayout>

        </org.chromium.components.browser_ui.widget.FadingEdgeScrollView>

        <org.chromium.ui.widget.ButtonCompat
            android:id="@+id/more_button"
            android:focusable="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/privacy_sandbox_m1_dialog_more_button"
            android:visibility="gone"
            android:layout_marginHorizontal="24dp"
            android:layout_marginVertical="@dimen/promo_dialog_padding"
            android:layout_gravity="end"
            android:gravity="center_vertical"
            android:drawableEnd="@drawable/ic_arrow_down"
            android:drawableTint="?attr/globalFilledButtonTextColor"
            android:drawablePadding="@dimen/privacy_sandbox_more_button_drawable_padding"
            style="@style/FilledButton" />

        <LinearLayout
            android:id="@+id/action_buttons"
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:weightSum="2"
            android:layout_marginTop="@dimen/promo_dialog_padding"
            android:layout_marginBottom="@dimen/promo_dialog_padding"
            android:layout_marginHorizontal="24dp"
            android:visibility="invisible" >

            <org.chromium.ui.widget.ButtonCompat
                android:id="@+id/settings_button"
                android:focusable="true"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginEnd="@dimen/privacy_sandbox_consent_button_margin_between"
                android:text="@string/privacy_sandbox_m1_notice_eea_settings_button"
                style="@style/OutlinedButton" />

            <org.chromium.ui.widget.ButtonCompat
                android:id="@+id/ack_button"
                android:focusable="true"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/privacy_sandbox_consent_button_margin_between"
                android:text="@string/privacy_sandbox_m1_notice_eea_ack_button"
                style="@style/FilledButton" />

        </LinearLayout>
    </org.chromium.components.browser_ui.widget.BoundedLinearLayout>
</LinearLayout>