Files
app_Settings/res/layout/notification_history_app_layout.xml
Julia Reynolds 71153c3a4c Update styling of notification history page
- App icons, not notification icons
- paddings and margins
- dividers
- expressive zero-state

Test: manual
Fixes: 424341328
Fixes: 443962886
Fixes: 416951634
Fixes: 413058689
Fixes: 378680153
Flag: EXEMPT BUG_FIX
Change-Id: Id024c627885b94fe0f83f787361bb2f7f954bb3a
2025-09-11 07:19:35 -07:00

94 lines
3.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToOutline="true"
android:background="@drawable/notification_history_app_row"
android:foreground="?android:attr/selectableItemBackground"
android:orientation="vertical">
<LinearLayout
android:id="@+id/app_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<ImageView
android:id="@+id/icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:scaleType="centerInside"
android:layout_margin="16dp"
android:contentDescription="@null"/>
<TextView
android:id="@+id/label"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="end"
android:lines="1"
android:textAlignment="viewStart"
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"
android:textDirection="locale"/>
<FrameLayout
android:id="@+id/expand_button_wrapper"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android_layout_marginStart="8dp"
android:layout_alignParentEnd="true">
<include
layout="@*android:layout/notification_expand_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/notification_list_wrapper"
android:layout_width="match_parent"
android:background="@androidprv:color/materialColorSurfaceContainer"
android:layout_height="wrap_content">
<com.android.settings.notification.history.NotificationHistoryRecyclerView
android:id="@+id/notification_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipChildren="true"
android:clipToOutline="true"
android:clipToPadding="true"
android:importantForAccessibility="yes"
android:layout_marginTop="1dp"
app:layout_constrainedHeight="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_max="500dp"
app:layout_constraintHeight_min="48dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>