blob: a183c92f7a4f0e36d82c9714bb401fbdc5d8c17e [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"
Tonyacaf5b32017-05-10 13:05:32 -050022 android:elevation="@dimen/deep_shortcuts_elevation">
Tony Wickham9438ed42017-01-20 09:38:25 -080023
24 <RelativeLayout
25 android:layout_width="match_parent"
26 android:layout_height="match_parent"
27 android:orientation="vertical"
28 android:clipChildren="false">
29
Tony Wickhamce445162017-04-10 14:05:34 -070030 <FrameLayout
Tony Wickham9407d4a2017-02-24 15:08:13 -080031 android:id="@+id/header"
32 android:layout_width="match_parent"
33 android:layout_height="@dimen/notification_header_height"
Tony Wickhamce445162017-04-10 14:05:34 -070034 android:paddingStart="@dimen/notification_padding_start"
35 android:paddingEnd="@dimen/notification_padding_end"
Tonyacaf5b32017-05-10 13:05:32 -050036 android:background="@color/popup_background_color"
Tony Wickham9407d4a2017-02-24 15:08:13 -080037 android:elevation="@dimen/notification_elevation">
38 <TextView
Tony Wickham9407d4a2017-02-24 15:08:13 -080039 android:id="@+id/notification_text"
40 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
Tony Wickhamce445162017-04-10 14:05:34 -070042 android:layout_gravity="start"
43 android:gravity="center_vertical"
44 android:text="@string/notifications_header"
45 android:textSize="@dimen/notification_header_text_size"
Tony Wickham9407d4a2017-02-24 15:08:13 -080046 android:textColor="?android:attr/textColorSecondary" />
Tony Wickhamce445162017-04-10 14:05:34 -070047 <TextView
48 android:id="@+id/notification_count"
49 android:layout_width="@dimen/notification_icon_size"
50 android:layout_height="match_parent"
51 android:layout_gravity="end"
52 android:gravity="center"
53 android:textSize="@dimen/notification_header_count_text_size"
54 android:fontFamily="sans-serif-medium"
55 android:textColor="?android:attr/textColorPrimary" />
56 </FrameLayout>
Tony Wickham9407d4a2017-02-24 15:08:13 -080057
Tony Wickham9438ed42017-01-20 09:38:25 -080058 <include layout="@layout/notification_main"
59 android:id="@+id/main_view"
60 android:layout_width="match_parent"
Tony Wickham9407d4a2017-02-24 15:08:13 -080061 android:layout_height="@dimen/notification_main_height"
62 android:layout_below="@id/header" />
63
64 <View
65 android:id="@+id/divider"
66 android:layout_width="match_parent"
67 android:layout_height="@dimen/popup_item_divider_height"
Tony0b8a6fe2017-05-09 19:23:47 -050068 android:background="?android:attr/listDivider"
Tony Wickham79b176e2017-06-05 17:54:45 -070069 android:layout_below="@id/main_view"
70 android:visibility="gone" />
Tony Wickham9438ed42017-01-20 09:38:25 -080071
72 <include layout="@layout/notification_footer"
73 android:id="@+id/footer"
74 android:layout_width="match_parent"
75 android:layout_height="@dimen/notification_footer_height"
Tony Wickham9407d4a2017-02-24 15:08:13 -080076 android:layout_below="@id/divider" />
Tony Wickham9438ed42017-01-20 09:38:25 -080077
78 </RelativeLayout>
79
80</com.android.launcher3.notification.NotificationItemView>