1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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.android.systemui.statusbar.notification.row.FeedbackInfo 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:id="@+id/feedback_info" 23 android:clickable="true" 24 android:clipChildren="false" 25 android:clipToPadding="false" 26 android:orientation="vertical" 27 android:paddingStart="@dimen/notification_shade_content_margin_horizontal" 28 android:paddingEnd="@dimen/notification_shade_content_margin_horizontal" 29 android:background="?android:attr/colorBackground"> 30 31 <!-- Package Info --> 32 <LinearLayout 33 android:id="@+id/header" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:gravity="center_vertical" 37 android:clipChildren="false" 38 android:paddingTop="@dimen/notification_guts_header_top_padding" 39 android:clipToPadding="false"> 40 <ImageView 41 android:id="@+id/pkg_icon" 42 android:layout_width="@dimen/notification_guts_conversation_icon_size" 43 android:layout_height="@dimen/notification_guts_conversation_icon_size" 44 android:layout_centerVertical="true" 45 android:layout_alignParentStart="true" 46 android:layout_marginEnd="15dp" /> 47 <LinearLayout 48 android:id="@+id/names" 49 android:layout_weight="1" 50 android:layout_width="0dp" 51 android:orientation="vertical" 52 android:layout_height="wrap_content" 53 android:minHeight="@dimen/notification_guts_conversation_icon_size" 54 android:layout_centerVertical="true" 55 android:gravity="center_vertical" 56 android:layout_alignEnd="@id/pkg_icon" 57 android:layout_toEndOf="@id/pkg_icon"> 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:gravity="start" 62 android:orientation="horizontal"> 63 <TextView 64 android:id="@+id/pkg_name" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 style="@style/TextAppearance.NotificationImportanceApp" 68 android:ellipsize="end" 69 android:textDirection="locale" 70 android:maxLines="1"/> 71 </LinearLayout> 72 </LinearLayout> 73 </LinearLayout> 74 75 <TextView 76 android:id="@+id/prompt" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_marginTop="@*android:dimen/notification_header_padding_top" /> 80 <LinearLayout 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content" 83 android:layout_marginTop="@dimen/notification_guts_button_spacing" 84 android:layout_marginBottom="@dimen/notification_guts_button_spacing" 85 android:gravity="end" 86 android:orientation="horizontal"> 87 <TextView 88 android:id="@+id/yes" 89 android:text="Yes" 90 android:layout_width="wrap_content" 91 android:layout_height="match_parent" 92 android:background="@drawable/ripple_drawable" 93 android:minWidth="48dp" 94 android:gravity="center" 95 android:layout_marginStart="8dp" 96 android:layout_marginEnd="-8dp" 97 style="@style/TextAppearance.NotificationInfo.Button"/> 98 <TextView 99 android:id="@+id/no" 100 android:text="No" 101 android:layout_width="wrap_content" 102 android:layout_height="match_parent" 103 android:background="@drawable/ripple_drawable" 104 android:minWidth="48dp" 105 android:gravity="center" 106 android:layout_marginStart="8dp" 107 android:layout_marginEnd="-8dp" 108 style="@style/TextAppearance.NotificationInfo.Button"/> 109 </LinearLayout> 110 111</com.android.systemui.statusbar.notification.row.FeedbackInfo> 112