1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<FrameLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/item_root"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content">
23
24    <com.google.android.material.card.MaterialCardView
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content"
27        android:layout_margin="4dp"
28        android:elevation="0dp"
29        android:duplicateParentState="true"
30        app:cardElevation="0dp"
31        app:strokeWidth="1dp"
32        app:strokeColor="?android:strokeColor">
33
34        <LinearLayout
35            android:layout_height="wrap_content"
36            android:layout_width="match_parent"
37            android:background="?android:attr/colorBackground"
38            android:orientation="vertical">
39
40            <LinearLayout
41                android:animateLayoutChanges="true"
42                android:id="@+id/message_container"
43                android:layout_height="wrap_content"
44                android:layout_width="match_parent"
45                android:minHeight="60dp"
46                android:orientation="horizontal">
47
48                <ImageView
49                    android:contentDescription="@null"
50                    android:id="@+id/message_icon"
51                    android:layout_height="@dimen/icon_size"
52                    android:layout_width="@dimen/icon_size"
53                    android:layout_margin="8dp"
54                    android:layout_gravity="center"
55                    android:scaleType="centerInside"/>
56
57                <LinearLayout
58                    android:layout_height="wrap_content"
59                    android:layout_width="match_parent"
60                    android:minHeight="48dp"
61                    android:paddingTop="12dp"
62                    android:paddingEnd="12dp"
63                    android:gravity="center_vertical"
64                    android:orientation="vertical">
65
66                    <TextView
67                        android:id="@+id/message_title"
68                        android:layout_height="wrap_content"
69                        android:layout_width="wrap_content"
70                        android:textSize="16sp"
71                        android:textAppearance="@style/DrawerMenuPrimary"/>
72
73                    <TextView
74                        android:id="@+id/message_subtitle"
75                        android:layout_height="wrap_content"
76                        android:layout_width="wrap_content"
77                        android:selectAllOnFocus="true"
78                        android:textSize="12sp"/>
79
80                    <TextView
81                        android:id="@+id/message_textview"
82                        android:layout_height="wrap_content"
83                        android:layout_width="wrap_content"
84                        android:selectAllOnFocus="true"/>
85
86                    <Button
87                        android:id="@+id/dismiss_button"
88                        android:layout_height="wrap_content"
89                        android:layout_width="wrap_content"
90                        android:layout_gravity="end"
91                        android:text="@android:string/ok"
92                        style="@style/DialogTextButton"/>
93
94                </LinearLayout>
95            </LinearLayout>
96
97            <LinearLayout
98                android:id="@+id/action_view"
99                android:layout_height="wrap_content"
100                android:layout_width="match_parent"
101                android:orientation="vertical">
102
103                <Button
104                    android:id="@+id/action_button"
105                    android:layout_height="wrap_content"
106                    android:layout_width="wrap_content"
107                    android:layout_marginEnd="16dp"
108                    android:layout_gravity="end"
109                    style="@style/DialogTextButton"/>
110
111            </LinearLayout>
112
113        </LinearLayout>
114
115    </com.google.android.material.card.MaterialCardView>
116</FrameLayout>
117