112 lines
4.7 KiB
XML
112 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2020 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License.
|
|
-->
|
|
|
|
<com.android.systemui.statusbar.notification.row.FeedbackInfo
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/feedback_info"
|
|
android:clickable="true"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:paddingStart="@dimen/notification_shade_content_margin_horizontal"
|
|
android:paddingEnd="@dimen/notification_shade_content_margin_horizontal"
|
|
android:background="?android:attr/colorBackground">
|
|
|
|
<!-- Package Info -->
|
|
<LinearLayout
|
|
android:id="@+id/header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:clipChildren="false"
|
|
android:paddingTop="@dimen/notification_guts_header_top_padding"
|
|
android:clipToPadding="false">
|
|
<ImageView
|
|
android:id="@+id/pkg_icon"
|
|
android:layout_width="@dimen/notification_guts_conversation_icon_size"
|
|
android:layout_height="@dimen/notification_guts_conversation_icon_size"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_marginEnd="15dp" />
|
|
<LinearLayout
|
|
android:id="@+id/names"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:orientation="vertical"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="@dimen/notification_guts_conversation_icon_size"
|
|
android:layout_centerVertical="true"
|
|
android:gravity="center_vertical"
|
|
android:layout_alignEnd="@id/pkg_icon"
|
|
android:layout_toEndOf="@id/pkg_icon">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:id="@+id/pkg_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/TextAppearance.NotificationImportanceApp"
|
|
android:ellipsize="end"
|
|
android:textDirection="locale"
|
|
android:maxLines="1"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/prompt"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@*android:dimen/notification_header_padding_top" />
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/notification_guts_button_spacing"
|
|
android:layout_marginBottom="@dimen/notification_guts_button_spacing"
|
|
android:gravity="end"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:id="@+id/yes"
|
|
android:text="Yes"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/ripple_drawable"
|
|
android:minWidth="48dp"
|
|
android:gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="-8dp"
|
|
style="@style/TextAppearance.NotificationInfo.Button"/>
|
|
<TextView
|
|
android:id="@+id/no"
|
|
android:text="No"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/ripple_drawable"
|
|
android:minWidth="48dp"
|
|
android:gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="-8dp"
|
|
style="@style/TextAppearance.NotificationInfo.Button"/>
|
|
</LinearLayout>
|
|
|
|
</com.android.systemui.statusbar.notification.row.FeedbackInfo>
|