blob: 1eebb434ba5bf05f74a7e4e826348860a660b2c8 [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"
Tony Wickham90038eb2017-06-06 15:42:32 -070022 android:theme="@style/PopupItem"
Tonyacaf5b32017-05-10 13:05:32 -050023 android:elevation="@dimen/deep_shortcuts_elevation">
Tony Wickham9438ed42017-01-20 09:38:25 -080024
25 <RelativeLayout
26 android:layout_width="match_parent"
27 android:layout_height="match_parent"
28 android:orientation="vertical"
29 android:clipChildren="false">
30
Tony Wickhamaa2272f2017-06-22 14:22:40 -070031 <View
32 android:id="@+id/gutter_top"
33 android:layout_width="match_parent"
34 android:layout_height="4dp"
35 android:theme="@style/PopupGutter"
36 android:visibility="gone" />
37
Tony Wickhamce445162017-04-10 14:05:34 -070038 <FrameLayout
Tony Wickham9407d4a2017-02-24 15:08:13 -080039 android:id="@+id/header"
40 android:layout_width="match_parent"
41 android:layout_height="@dimen/notification_header_height"
Tony Wickhamce445162017-04-10 14:05:34 -070042 android:paddingStart="@dimen/notification_padding_start"
43 android:paddingEnd="@dimen/notification_padding_end"
Tony Wickham90038eb2017-06-06 15:42:32 -070044 android:background="?attr/popupColorPrimary"
Tony Wickhamaa2272f2017-06-22 14:22:40 -070045 android:elevation="@dimen/notification_elevation"
46 android:layout_below="@id/gutter_top" >
Tony Wickham9407d4a2017-02-24 15:08:13 -080047 <TextView
Tony Wickham9407d4a2017-02-24 15:08:13 -080048 android:id="@+id/notification_text"
49 android:layout_width="wrap_content"
50 android:layout_height="match_parent"
Tony Wickhamce445162017-04-10 14:05:34 -070051 android:layout_gravity="start"
Tony Wickham2063ebd2017-09-05 15:09:43 -070052 android:gravity="center_vertical"
Tony Wickhamce445162017-04-10 14:05:34 -070053 android:text="@string/notifications_header"
54 android:textSize="@dimen/notification_header_text_size"
Tony Wickhamaa2272f2017-06-22 14:22:40 -070055 android:textColor="?android:attr/textColorPrimary" />
Tony Wickhamce445162017-04-10 14:05:34 -070056 <TextView
57 android:id="@+id/notification_count"
58 android:layout_width="@dimen/notification_icon_size"
59 android:layout_height="match_parent"
60 android:layout_gravity="end"
Tony Wickham2063ebd2017-09-05 15:09:43 -070061 android:gravity="center"
Tony Wickhamce445162017-04-10 14:05:34 -070062 android:textSize="@dimen/notification_header_count_text_size"
63 android:fontFamily="sans-serif-medium"
64 android:textColor="?android:attr/textColorPrimary" />
65 </FrameLayout>
Tony Wickham9407d4a2017-02-24 15:08:13 -080066
Tony Wickham9438ed42017-01-20 09:38:25 -080067 <include layout="@layout/notification_main"
68 android:id="@+id/main_view"
69 android:layout_width="match_parent"
Tony Wickham9407d4a2017-02-24 15:08:13 -080070 android:layout_height="@dimen/notification_main_height"
71 android:layout_below="@id/header" />
72
73 <View
74 android:id="@+id/divider"
75 android:layout_width="match_parent"
76 android:layout_height="@dimen/popup_item_divider_height"
Tony Wickham90038eb2017-06-06 15:42:32 -070077 android:background="?attr/popupColorTertiary"
Tony Wickham79b176e2017-06-05 17:54:45 -070078 android:layout_below="@id/main_view"
79 android:visibility="gone" />
Tony Wickham9438ed42017-01-20 09:38:25 -080080
81 <include layout="@layout/notification_footer"
82 android:id="@+id/footer"
83 android:layout_width="match_parent"
84 android:layout_height="@dimen/notification_footer_height"
Tony Wickham9407d4a2017-02-24 15:08:13 -080085 android:layout_below="@id/divider" />
Tony Wickham9438ed42017-01-20 09:38:25 -080086
Tony Wickhamaa2272f2017-06-22 14:22:40 -070087 <View
88 android:id="@+id/gutter_bottom"
89 android:layout_width="match_parent"
90 android:layout_height="4dp"
91 android:theme="@style/PopupGutter"
92 android:visibility="gone"
93 android:layout_below="@id/footer" />
94
Tony Wickham9438ed42017-01-20 09:38:25 -080095 </RelativeLayout>
96
97</com.android.launcher3.notification.NotificationItemView>