<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2022 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    style="@style/ScrollViewStyle"
    android:importantForAccessibility="no">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:baselineAligned="false"
        android:importantForAccessibility="no">

        <LinearLayout
            android:id="@+id/data_transfer_confirmation"
            style="@style/ContainerLayout">

            <!-- Do NOT change the ID of the root LinearLayout above: it's referenced in CTS tests. -->

            <ImageView
                android:id="@+id/header_icon"
                android:layout_width="match_parent"
                android:layout_height="32dp"
                android:gravity="center"
                android:layout_marginTop="18dp"
                android:src="@drawable/ic_warning"
                android:contentDescription="@null" />

            <LinearLayout style="@style/Description">

                <TextView
                    android:id="@+id/title"
                    style="@style/DescriptionTitle" />

                <TextView
                    android:id="@+id/summary"
                    style="@style/DescriptionSummary" />

            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:orientation="vertical"
                android:layout_marginTop="12dp"
                android:layout_marginBottom="18dp">

                <!-- Do NOT change the IDs of the buttons: they are referenced in CTS tests. -->

                <Button
                    android:id="@+id/btn_positive"
                    style="@style/PositiveButton"
                    android:text="@string/consent_yes" />

                <Button
                    android:id="@+id/btn_negative"
                    style="@style/NegativeButton"
                    android:text="@string/consent_no" />

            </LinearLayout>

        </LinearLayout>

    </LinearLayout>

</ScrollView>