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    <RelativeLayout
25        android:id="@+id/app_header"
26        android:layout_height="wrap_content"
27        android:layout_width="match_parent"
28        android:clipChildren="true"
29        android:background="@drawable/button_ripple_radius"
30        android:paddingTop="20dp"
31        android:orientation="horizontal"
32        android:paddingBottom="18dp"
33        android:paddingStart="16dp">
34        <ImageView
35            android:id="@+id/icon"
36            android:layout_height="24dp"
37            android:layout_width="24dp"
38            android:layout_gravity="center_vertical|start"
39            android:layout_marginEnd="14dp"
40            android:layout_centerVertical="true"
41            android:scaleType="centerInside"/>
42
43        <LinearLayout
44            android:layout_width="wrap_content"
45            android:layout_height="wrap_content"
46            android:id="@+id/text"
47            android:layout_toEndOf="@+id/icon"
48            android:layout_gravity="center_vertical"
49            android:layout_centerVertical="true"
50            android:orientation="vertical">
51            <TextView
52                android:id="@+id/label"
53                android:layout_height="wrap_content"
54                android:layout_width="wrap_content"
55                android:layout_gravity="center_vertical"
56                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"/>
57            <TextView
58                android:id="@+id/count"
59                android:layout_height="wrap_content"
60                android:layout_width="wrap_content"
61                android:layout_gravity="start|center_vertical"
62                android:textDirection="locale"
63                android:paddingTop="4dp"
64                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"/>
65        </LinearLayout>
66
67        <include layout="@*android:layout/notification_expand_button"
68                 android:layout_width="wrap_content"
69                 android:layout_height="wrap_content"
70                 android:layout_alignParentEnd="true"
71                 android:layout_centerVertical="true"
72                 android:layout_gravity="center_vertical"
73        />
74
75    </RelativeLayout>
76
77    <View
78        android:layout_width="match_parent"
79        android:layout_height="1dp"
80        android:background="?android:attr/listDivider"/>
81
82    <androidx.constraintlayout.widget.ConstraintLayout
83        android:id="@+id/notification_list_wrapper"
84        android:layout_width="match_parent"
85        android:layout_height="wrap_content">
86
87        <com.android.settings.notification.history.NotificationHistoryRecyclerView
88            android:layout_width="match_parent"
89            android:layout_height="wrap_content"
90            android:id="@+id/notification_list"
91            android:clipChildren="true"
92            android:clipToPadding="true"
93            android:clipToOutline="true"
94            android:importantForAccessibility="yes"
95            app:layout_constrainedHeight="true"
96            app:layout_constraintHeight_min="48dp"
97            app:layout_constraintHeight_max="500dp"
98            app:layout_constraintTop_toTopOf="parent"
99            app:layout_constraintEnd_toEndOf="parent"
100            app:layout_constraintStart_toStartOf="parent"
101            app:layout_constraintBottom_toBottomOf="parent"/>
102
103    </androidx.constraintlayout.widget.ConstraintLayout>
104
105</LinearLayout>