Merge "Notification history UI buff" into sc-dev am: 91b4a58111
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14037274 Change-Id: I03168e7fbd0a9a112d38f8d631e14a3eac2f3fe6
This commit is contained in:
27
res/drawable/circle.xml
Normal file
27
res/drawable/circle.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2021 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.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M 12 0 C 18.627416998 0 24 5.37258300203 24 12 C 24 18.627416998 18.627416998 24 12 24 C 5.37258300203 24 0 18.627416998 0 12 C 0 5.37258300203 5.37258300203 0 12 0 Z" />
|
||||
</vector>
|
||||
@@ -26,35 +26,32 @@
|
||||
android:layout_width="match_parent"
|
||||
android:background="@drawable/button_ripple_radius"
|
||||
android:paddingTop="12dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingStart="16dp">
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_height="24dp"
|
||||
android:layout_width="24dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_gravity="center_vertical|start"
|
||||
android:scaleType="centerInside"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="32dp"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
<TextView
|
||||
android:id="@+id/label"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_height="24dp"
|
||||
android:layout_width="24dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:scaleType="centerInside"/>
|
||||
<TextView
|
||||
android:id="@+id/label"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"
|
||||
android:paddingStart="8dp" />
|
||||
</LinearLayout>
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"/>
|
||||
<TextView
|
||||
android:id="@+id/count"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingStart="6dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:textDirection="locale"
|
||||
android:paddingTop="8dp"
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="32dp"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.NotificationHistory.Title"
|
||||
@@ -76,6 +77,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginStart="32dp"
|
||||
android:maxLines="3"
|
||||
android:paddingTop="3dp"
|
||||
android:textAppearance="@style/TextAppearance.NotificationHistory.Text"
|
||||
|
||||
@@ -37,15 +37,14 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_height="@*android:dimen/status_bar_icon_size"
|
||||
android:layout_width="@*android:dimen/status_bar_icon_size"
|
||||
android:layout_height="24dp"
|
||||
android:layout_width="24dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:padding="4dp"
|
||||
android:contentDescription="@null"
|
||||
android:adjustViewBounds="true"
|
||||
android:tint="?android:attr/textColorPrimary"
|
||||
android:scaleType="fitCenter" />
|
||||
android:scaleType="centerInside" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pkgname"
|
||||
@@ -98,6 +97,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="32dp"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginBottom="6dp"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user