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