• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical">
22
23    <RelativeLayout
24        android:id="@+id/app_header"
25        android:layout_height="wrap_content"
26        android:layout_width="match_parent"
27        android:clipChildren="true"
28        android:background="@drawable/button_ripple_radius"
29        android:paddingTop="20dp"
30        android:orientation="horizontal"
31        android:paddingBottom="18dp"
32        android:paddingStart="16dp">
33        <ImageView
34            android:id="@+id/icon"
35            android:layout_height="24dp"
36            android:layout_width="24dp"
37            android:layout_gravity="center_vertical|start"
38            android:layout_marginEnd="14dp"
39            android:layout_centerVertical="true"
40            android:scaleType="centerInside"/>
41
42        <LinearLayout
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            android:id="@+id/text"
46            android:layout_toEndOf="@+id/icon"
47            android:layout_gravity="center_vertical"
48            android:layout_centerVertical="true"
49            android:orientation="vertical">
50            <TextView
51                android:id="@+id/label"
52                android:layout_height="wrap_content"
53                android:layout_width="wrap_content"
54                android:layout_gravity="center_vertical"
55                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"/>
56            <TextView
57                android:id="@+id/count"
58                android:layout_height="wrap_content"
59                android:layout_width="wrap_content"
60                android:layout_gravity="start|center_vertical"
61                android:textDirection="locale"
62                android:paddingTop="4dp"
63                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"/>
64        </LinearLayout>
65
66        <include layout="@*android:layout/notification_expand_button"
67                 android:layout_width="wrap_content"
68                 android:layout_height="wrap_content"
69                 android:layout_alignParentEnd="true"
70                 android:layout_centerVertical="true"
71                 android:layout_gravity="center_vertical"
72        />
73
74    </RelativeLayout>
75
76    <View
77        android:layout_width="match_parent"
78        android:layout_height="1dp"
79        android:background="?android:attr/listDivider"/>
80
81        <com.android.settings.notification.history.NotificationHistoryRecyclerView
82            android:id="@+id/notification_list"
83            android:layout_width="match_parent"
84            android:layout_height="wrap_content"
85            android:clipChildren="true"
86            android:clipToPadding="true"
87            android:importantForAccessibility="yes"
88            android:scrollbars="none"/>
89
90</LinearLayout>