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