1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2019 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 android:id="@+id/suggestion_card" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 style="@style/ContextualCardStyle"> 24 25 <LinearLayout 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:minHeight="112dp" 29 android:paddingBottom="8dp" 30 android:orientation="vertical"> 31 32 <RelativeLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="horizontal"> 36 37 <ImageView 38 android:id="@android:id/icon" 39 android:layout_width="@dimen/contextual_card_icon_size" 40 android:layout_height="@dimen/contextual_card_icon_size" 41 style="@style/SuggestionCardIcon" 42 android:layout_marginTop="16dp" 43 android:layout_marginBottom="6dp"/> 44 45 </RelativeLayout> 46 47 <TextView 48 android:id="@android:id/title" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 style="@style/SuggestionCardText" 52 android:layout_marginStart="12dp" 53 android:layout_marginEnd="12dp" 54 android:singleLine="true" 55 android:textAppearance="@style/TextAppearance.SuggestionTitle" 56 android:fadingEdge="horizontal"/> 57 58 <TextView 59 android:id="@android:id/summary" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 style="@style/SuggestionCardText" 63 android:layout_marginStart="12dp" 64 android:layout_marginEnd="12dp" 65 android:singleLine="true" 66 android:textAppearance="@style/TextAppearance.SuggestionSummary"/> 67 68 </LinearLayout> 69 70</com.google.android.material.card.MaterialCardView>