7f3526a1a4
- Use smaller radius for notifications round rect background - Remove "Notifications" header, and clip children to round rect path - Flip main notification so that icon shows on the right instead of left; footer is also flipped so animation makes sense - Clean up animations to animate view outline instead of height Bug: 32410600 Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
62 lines
2.3 KiB
XML
62 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 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.launcher3.notification.NotificationMainView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:focusable="true"
|
|
android:padding="@dimen/notification_padding"
|
|
android:elevation="@dimen/notification_elevation" >
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical">
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:textAlignment="viewStart"
|
|
android:fontFamily="sans-serif"
|
|
android:textSize="14sp"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
android:id="@+id/text"
|
|
android:paddingEnd="4dp"
|
|
android:textSize="12sp"
|
|
android:textAlignment="viewStart"
|
|
android:fontFamily="sans-serif"
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/popup_item_icon"
|
|
android:layout_width="@dimen/notification_icon_size"
|
|
android:layout_height="@dimen/notification_icon_size"
|
|
android:layout_weight="0"
|
|
android:layout_gravity="center_vertical" />
|
|
|
|
</com.android.launcher3.notification.NotificationMainView>
|
|
|