1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2024 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    style="@style/SettingsLibStatusBannerCardStyle">
21
22    <LinearLayout
23        android:id="@+id/banner_container"
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:baselineAligned="false"
27        android:paddingVertical="@dimen/settingslib_expressive_space_small1"
28        android:paddingHorizontal="?android:attr/listPreferredItemPaddingStart"
29        android:orientation="vertical">
30
31        <LinearLayout
32            android:id="@+id/status_container"
33            android:layout_width="match_parent"
34            android:layout_height="match_parent"
35            android:orientation="horizontal">
36
37            <FrameLayout
38                android:id="@android:id/icon_frame"
39                android:layout_width="wrap_content"
40                android:layout_height="wrap_content"
41                android:minWidth="@dimen/settingslib_status_banner_icon_frame_size"
42                android:minHeight="@dimen/settingslib_status_banner_icon_frame_size"
43                android:gravity="center"
44                android:orientation="horizontal">
45
46                <ImageView
47                    android:id="@+id/icon_background"
48                    android:layout_width="wrap_content"
49                    android:layout_height="wrap_content"/>
50
51                <ImageView
52                    android:id="@android:id/icon"
53                    android:layout_width="@dimen/settingslib_expressive_space_medium4"
54                    android:layout_height="@dimen/settingslib_expressive_space_medium4"
55                    android:layout_gravity="center"
56                    android:scaleType="centerInside"/>
57
58            </FrameLayout>
59
60            <LinearLayout
61                android:id="@+id/text_container"
62                android:layout_width="0dp"
63                android:layout_height="wrap_content"
64                android:paddingVertical="@dimen/settingslib_expressive_space_extrasmall4"
65                android:paddingHorizontal="@dimen/settingslib_expressive_space_small1"
66                android:layout_weight="1"
67                android:layout_gravity="center"
68                android:orientation="vertical">
69                <TextView
70                    android:id="@android:id/title"
71                    android:layout_width="match_parent"
72                    android:layout_height="wrap_content"
73                    android:hyphenationFrequency="normalFast"
74                    android:lineBreakWordStyle="phrase"
75                    android:textAppearance="@style/SettingsLibTextAppearance.Emphasized.Title.Large"/>
76
77                <TextView
78                    android:id="@android:id/summary"
79                    android:layout_width="match_parent"
80                    android:layout_height="wrap_content"
81                    android:hyphenationFrequency="normalFast"
82                    android:lineBreakWordStyle="phrase"
83                    android:maxLines="3"
84                    android:textAppearance="@style/SettingsLibTextAppearance.Primary.Body.Medium"/>
85            </LinearLayout>
86        </LinearLayout>
87
88        <com.google.android.material.button.MaterialButton
89            android:id="@+id/status_banner_button"
90            android:layout_marginTop="@dimen/settingslib_expressive_space_small3"
91            style="@style/SettingsLibButtonStyle.Expressive.Filled.Extra"/>
92
93    </LinearLayout>
94</com.google.android.material.card.MaterialCardView>