1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2022 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<com.google.android.material.card.MaterialCardView
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:layout_gravity="center_horizontal"
24    android:layout_marginTop="@dimen/picker_banner_margin_top"
25    android:layout_marginBottom="@dimen/picker_banner_margin_bottom"
26    android:layout_marginHorizontal="@dimen/picker_banner_margin_horizontal"
27    app:cardBackgroundColor="?attr/pickerBannerBackgroundColor"
28    app:strokeColor="?attr/pickerBannerStrokeColor"
29    app:strokeWidth="@dimen/picker_banner_stroke_width">
30
31    <LinearLayout
32        android:layout_width="match_parent"
33        android:layout_height="wrap_content"
34        android:orientation="vertical"
35        android:paddingTop="@dimen/picker_banner_internal_padding_top">
36
37        <LinearLayout
38            android:layout_width="wrap_content"
39            android:layout_height="match_parent"
40            android:orientation="horizontal"
41            android:paddingHorizontal="@dimen/picker_banner_internal_padding_horizontal">
42
43            <ImageView
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:scaleType="fitCenter"
47                android:src="@drawable/cloud_done"
48                android:contentDescription="@null"
49                android:paddingEnd="@dimen/picker_banner_icon_padding_end"
50            />
51
52            <LinearLayout
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:orientation="vertical">
56
57                <TextView
58                    android:id="@+id/banner_primary_text"
59                    android:layout_width="wrap_content"
60                    android:layout_height="wrap_content"
61                    android:textSize="@dimen/picker_banner_primary_text_size"
62                    android:letterSpacing="@dimen/picker_banner_primary_text_letter_spacing"
63                    android:textColor="?attr/pickerBannerPrimaryTextColor"
64                />
65
66                <TextView
67                    android:id="@+id/banner_secondary_text"
68                    android:layout_width="wrap_content"
69                    android:layout_height="wrap_content"
70                    android:textSize="@dimen/picker_banner_secondary_text_size"
71                    android:letterSpacing="@dimen/picker_banner_secondary_text_letter_spacing"
72                    android:textColor="?attr/pickerBannerSecondaryTextColor"
73                />
74
75            </LinearLayout>
76
77        </LinearLayout>
78
79        <LinearLayout
80            android:layout_width="wrap_content"
81            android:layout_height="match_parent"
82            android:orientation="horizontal"
83            android:layout_gravity="end"
84            android:paddingTop="@dimen/picker_banner_layout_buttons_padding_top"
85            android:paddingHorizontal="@dimen/picker_banner_layout_buttons_padding_horizontal">
86
87            <Button
88                style="@style/PickerBannerButtonTheme"
89                android:id="@+id/dismiss_button"
90                android:text="@string/picker_banner_cloud_dismiss_button"
91            />
92
93            <Button
94                style="@style/PickerBannerButtonTheme"
95                android:id="@+id/action_button"
96            />
97
98        </LinearLayout>
99    </LinearLayout>
100</com.google.android.material.card.MaterialCardView>