blob: 6922ad9d3f9ca390b4fcb0d2bf79ea86eab56765 [file] [log] [blame]
Tony Wickham9438ed42017-01-20 09:38:25 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 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<com.android.launcher3.notification.NotificationItemView
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/notification_view"
Tony Wickham51889b02017-02-27 16:30:47 -080020 android:layout_width="@dimen/bg_popup_item_width"
Tony Wickham9438ed42017-01-20 09:38:25 -080021 android:layout_height="wrap_content"
22 android:elevation="@dimen/deep_shortcuts_elevation"
Tony Wickham9407d4a2017-02-24 15:08:13 -080023 android:background="@drawable/bg_white_round_rect"
24 android:backgroundTint="@color/notification_color_beneath">
Tony Wickham9438ed42017-01-20 09:38:25 -080025
26 <RelativeLayout
27 android:layout_width="match_parent"
28 android:layout_height="match_parent"
29 android:orientation="vertical"
30 android:clipChildren="false">
31
Tony Wickham9407d4a2017-02-24 15:08:13 -080032 <com.android.launcher3.notification.NotificationHeaderView
33 android:id="@+id/header"
34 android:layout_width="match_parent"
35 android:layout_height="@dimen/notification_header_height"
36 android:orientation="horizontal"
37 android:paddingStart="@dimen/notification_padding"
38 android:background="@color/notification_header_background_color"
39 android:elevation="@dimen/notification_elevation">
40 <TextView
41 android:id="@+id/notification_count"
42 android:layout_width="wrap_content"
43 android:layout_height="match_parent"
44 android:gravity="start|center_vertical"
45 android:paddingEnd="@dimen/notification_header_padding_after_count"
46 android:textSize="@dimen/notification_main_text_size"
47 android:textColor="?android:attr/textColorPrimary" />
48 <TextView
49 android:id="@+id/notification_text"
50 android:layout_width="wrap_content"
51 android:layout_height="match_parent"
52 android:gravity="start|center_vertical"
53 android:textSize="@dimen/notification_main_text_size"
54 android:textColor="?android:attr/textColorSecondary" />
55 </com.android.launcher3.notification.NotificationHeaderView>
56
Tony Wickham9438ed42017-01-20 09:38:25 -080057 <include layout="@layout/notification_main"
58 android:id="@+id/main_view"
59 android:layout_width="match_parent"
Tony Wickham9407d4a2017-02-24 15:08:13 -080060 android:layout_height="@dimen/notification_main_height"
61 android:layout_below="@id/header" />
62
63 <View
64 android:id="@+id/divider"
65 android:layout_width="match_parent"
66 android:layout_height="@dimen/popup_item_divider_height"
67 android:background="@color/divider_color"
68 android:layout_below="@id/main_view"/>
Tony Wickham9438ed42017-01-20 09:38:25 -080069
70 <include layout="@layout/notification_footer"
71 android:id="@+id/footer"
72 android:layout_width="match_parent"
73 android:layout_height="@dimen/notification_footer_height"
Tony Wickham9407d4a2017-02-24 15:08:13 -080074 android:layout_below="@id/divider" />
Tony Wickham9438ed42017-01-20 09:38:25 -080075
76 </RelativeLayout>
77
78</com.android.launcher3.notification.NotificationItemView>