• 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:background="@drawable/button_ripple_radius"
28        android:paddingTop="12dp"
29        android:paddingBottom="12dp"
30        android:paddingStart="16dp">
31        <LinearLayout
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:orientation="vertical">
35            <LinearLayout
36                android:layout_width="wrap_content"
37                android:layout_height="wrap_content"
38                android:orientation="horizontal">
39                <ImageView
40                    android:id="@+id/icon"
41                    android:layout_height="24dp"
42                    android:layout_width="24dp"
43                    android:layout_gravity="center_vertical"
44                    android:scaleType="centerInside"/>
45                <TextView
46                    android:id="@+id/label"
47                    android:layout_height="wrap_content"
48                    android:layout_width="wrap_content"
49                    android:layout_gravity="center_vertical"
50                    android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"
51                    android:paddingStart="8dp" />
52            </LinearLayout>
53            <TextView
54                android:id="@+id/count"
55                android:layout_height="wrap_content"
56                android:layout_width="wrap_content"
57                android:paddingStart="6dp"
58                android:layout_gravity="start|center_vertical"
59                android:textDirection="locale"
60                android:paddingTop="8dp"
61                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"/>
62        </LinearLayout>
63        <ImageView
64            android:id="@+id/expand"
65            android:layout_alignParentEnd="true"
66            android:layout_centerVertical="true"
67            android:layout_height="48dp"
68            android:layout_width="48dp"
69            android:scaleType="center"
70            android:contentDescription="@null"
71            android:src="@*android:drawable/ic_expand_more"/>
72    </RelativeLayout>
73
74    <View
75        android:layout_width="match_parent"
76        android:layout_height="1dp"
77        android:background="?android:attr/listDivider"/>
78
79        <com.android.settings.notification.history.NotificationHistoryRecyclerView
80            android:id="@+id/notification_list"
81            android:layout_width="match_parent"
82            android:layout_height="wrap_content"
83            android:clipChildren="true"
84            android:clipToPadding="true"
85            android:importantForAccessibility="yes"
86            android:scrollbars="none"/>
87
88</LinearLayout>