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:orientation="vertical"> 38 39 <LinearLayout 40 android:animateLayoutChanges="true" 41 android:id="@+id/message_container" 42 android:layout_height="wrap_content" 43 android:layout_width="match_parent" 44 android:minHeight="60dp" 45 android:orientation="horizontal"> 46 47 <ImageView 48 android:contentDescription="@null" 49 android:id="@+id/message_icon" 50 android:layout_height="@dimen/icon_size" 51 android:layout_width="@dimen/icon_size" 52 android:layout_margin="8dp" 53 android:layout_gravity="center" 54 android:scaleType="centerInside"/> 55 56 <LinearLayout 57 android:layout_height="wrap_content" 58 android:layout_width="match_parent" 59 android:minHeight="48dp" 60 android:paddingTop="12dp" 61 android:paddingEnd="12dp" 62 android:gravity="center_vertical" 63 android:orientation="vertical"> 64 65 <TextView 66 android:id="@+id/message_title" 67 android:layout_height="wrap_content" 68 android:layout_width="wrap_content" 69 android:textSize="16sp" 70 android:textAppearance="@style/DrawerMenuPrimary"/> 71 72 <TextView 73 android:id="@+id/message_subtitle" 74 android:layout_height="wrap_content" 75 android:layout_width="wrap_content" 76 android:selectAllOnFocus="true" 77 android:textSize="12sp"/> 78 79 <TextView 80 android:id="@+id/message_textview" 81 android:layout_height="wrap_content" 82 android:layout_width="wrap_content" 83 android:selectAllOnFocus="true"/> 84 85 <Button 86 android:id="@+id/dismiss_button" 87 android:layout_height="wrap_content" 88 android:layout_width="wrap_content" 89 android:layout_gravity="end" 90 android:text="@android:string/ok" 91 style="@style/DialogTextButton"/> 92 93 </LinearLayout> 94 </LinearLayout> 95 96 <LinearLayout 97 android:id="@+id/action_view" 98 android:layout_height="wrap_content" 99 android:layout_width="match_parent" 100 android:orientation="vertical"> 101 102 <View 103 android:layout_width="match_parent" 104 android:layout_height="1dp" 105 android:layout_marginStart="8dp" 106 android:layout_marginEnd="8dp" 107 android:background="?android:strokeColor"/> 108 109 <Button 110 android:id="@+id/action_button" 111 android:layout_height="wrap_content" 112 android:layout_width="wrap_content" 113 android:layout_marginStart="48dp" 114 android:layout_gravity="start" 115 style="@style/DialogTextButton"/> 116 </LinearLayout> 117 118 </LinearLayout> 119 120 </com.google.android.material.card.MaterialCardView> 121</FrameLayout> 122