We are now insetting the notifications on the lockscreen. This also improves the clipping to the notifications since we can't just clip the whole content to the outline bounds. Test: add notifications on lockscreen, observe inset. Try swiping too. Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationCustomViewWrapperTest.java Bug: 69168591 Change-Id: Ie3f57dd4938bc97124fb98230cc9427fd4973ead
76 lines
2.8 KiB
XML
76 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2017, 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.
|
|
-->
|
|
|
|
<com.android.systemui.statusbar.NotificationSnooze
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:clickable="true"
|
|
android:background="@color/notification_guts_bg_color"
|
|
android:theme="@*android:style/Theme.DeviceDefault.Light">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/notification_snooze"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/snooze_snackbar_min_height">
|
|
|
|
<TextView
|
|
android:id="@+id/snooze_option_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:paddingStart="@*android:dimen/notification_content_margin_start"
|
|
android:textColor="#DD000000"
|
|
android:paddingEnd="4dp"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/expand_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toEndOf="@+id/snooze_option_default"
|
|
android:layout_centerVertical="true"
|
|
android:paddingTop="1dp"
|
|
android:tint="#9E9E9E" />
|
|
|
|
<TextView
|
|
android:id="@+id/undo"
|
|
style="@style/TextAppearance.NotificationInfo.Button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="36dp"
|
|
android:layout_marginEnd="@*android:dimen/notification_content_margin_end"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:text="@string/snooze_undo" />
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0.5dp"
|
|
android:background="#9E9E9E" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/snooze_options"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="8dp"
|
|
android:orientation="vertical" />
|
|
|
|
</com.android.systemui.statusbar.NotificationSnooze>
|