1<?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2020 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<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="vertical"> 23 24 <androidx.constraintlayout.widget.ConstraintLayout 25 android:id="@+id/app_header" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" 29 android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" 30 android:paddingTop="20dp" 31 android:paddingBottom="18dp" 32 android:paddingStart="16dp" 33 android:background="?android:attr/selectableItemBackground" 34 android:clipChildren="true"> 35 36 <ImageView 37 android:id="@+id/icon" 38 android:layout_width="24dp" 39 android:layout_height="24dp" 40 android:scaleType="centerInside" 41 app:layout_constraintBottom_toBottomOf="parent" 42 app:layout_constraintStart_toStartOf="parent" 43 app:layout_constraintTop_toTopOf="parent" /> 44 45 <TextView 46 android:id="@+id/label" 47 android:layout_width="0dp" 48 android:layout_height="wrap_content" 49 android:layout_marginStart="14dp" 50 android:ellipsize="end" 51 android:lines="1" 52 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title" 53 android:textDirection="locale" 54 app:layout_constraintBottom_toTopOf="@id/count" 55 app:layout_constraintEnd_toStartOf="@id/expand_button_wrapper" 56 app:layout_constraintStart_toEndOf="@id/icon" 57 app:layout_constraintTop_toTopOf="parent" /> 58 59 <TextView 60 android:id="@+id/count" 61 android:layout_width="0dp" 62 android:layout_height="wrap_content" 63 android:layout_marginStart="14dp" 64 android:paddingTop="4dp" 65 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification" 66 android:textDirection="locale" 67 app:layout_constraintBottom_toBottomOf="parent" 68 app:layout_constraintEnd_toStartOf="@id/expand_button_wrapper" 69 app:layout_constraintStart_toEndOf="@id/icon" 70 app:layout_constraintTop_toBottomOf="@id/label" /> 71 72 <FrameLayout 73 android:id="@+id/expand_button_wrapper" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 app:layout_constraintBottom_toBottomOf="parent" 77 app:layout_constraintEnd_toEndOf="parent" 78 app:layout_constraintTop_toTopOf="parent"> 79 80 <include 81 layout="@*android:layout/notification_expand_button" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" /> 84 85 </FrameLayout> 86 87 </androidx.constraintlayout.widget.ConstraintLayout> 88 89 <androidx.constraintlayout.widget.ConstraintLayout 90 android:id="@+id/notification_list_wrapper" 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" 94 android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"> 95 96 <com.android.settings.notification.history.NotificationHistoryRecyclerView 97 android:id="@+id/notification_list" 98 android:layout_width="match_parent" 99 android:layout_height="wrap_content" 100 android:clipChildren="true" 101 android:clipToOutline="true" 102 android:clipToPadding="true" 103 android:importantForAccessibility="yes" 104 app:layout_constrainedHeight="true" 105 app:layout_constraintBottom_toBottomOf="parent" 106 app:layout_constraintEnd_toEndOf="parent" 107 app:layout_constraintHeight_max="500dp" 108 app:layout_constraintHeight_min="48dp" 109 app:layout_constraintStart_toStartOf="parent" 110 app:layout_constraintTop_toTopOf="parent" /> 111 112 </androidx.constraintlayout.widget.ConstraintLayout> 113 114</LinearLayout>