Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 1 | <?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 Wickham | 51889b0 | 2017-02-27 16:30:47 -0800 | [diff] [blame] | 20 | android:layout_width="@dimen/bg_popup_item_width" |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 21 | android:layout_height="wrap_content" |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 22 | android:theme="@style/PopupItem" |
Tony | acaf5b3 | 2017-05-10 13:05:32 -0500 | [diff] [blame] | 23 | android:elevation="@dimen/deep_shortcuts_elevation"> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 24 | |
| 25 | <RelativeLayout |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="match_parent" |
| 28 | android:orientation="vertical" |
| 29 | android:clipChildren="false"> |
| 30 | |
Tony Wickham | aa2272f | 2017-06-22 14:22:40 -0700 | [diff] [blame] | 31 | <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 Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 38 | <FrameLayout |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 39 | android:id="@+id/header" |
| 40 | android:layout_width="match_parent" |
| 41 | android:layout_height="@dimen/notification_header_height" |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 42 | android:paddingStart="@dimen/notification_padding_start" |
| 43 | android:paddingEnd="@dimen/notification_padding_end" |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 44 | android:background="?attr/popupColorPrimary" |
Tony Wickham | aa2272f | 2017-06-22 14:22:40 -0700 | [diff] [blame] | 45 | android:elevation="@dimen/notification_elevation" |
| 46 | android:layout_below="@id/gutter_top" > |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 47 | <TextView |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 48 | android:id="@+id/notification_text" |
| 49 | android:layout_width="wrap_content" |
| 50 | android:layout_height="match_parent" |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 51 | android:layout_gravity="start" |
Tony Wickham | 2063ebd | 2017-09-05 15:09:43 -0700 | [diff] [blame] | 52 | android:gravity="center_vertical" |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 53 | android:text="@string/notifications_header" |
| 54 | android:textSize="@dimen/notification_header_text_size" |
Tony Wickham | aa2272f | 2017-06-22 14:22:40 -0700 | [diff] [blame] | 55 | android:textColor="?android:attr/textColorPrimary" /> |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 56 | <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 Wickham | 2063ebd | 2017-09-05 15:09:43 -0700 | [diff] [blame] | 61 | android:gravity="center" |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 62 | android:textSize="@dimen/notification_header_count_text_size" |
| 63 | android:fontFamily="sans-serif-medium" |
| 64 | android:textColor="?android:attr/textColorPrimary" /> |
| 65 | </FrameLayout> |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 66 | |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 67 | <include layout="@layout/notification_main" |
| 68 | android:id="@+id/main_view" |
| 69 | android:layout_width="match_parent" |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 70 | 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 Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 77 | android:background="?attr/popupColorTertiary" |
Tony Wickham | 79b176e | 2017-06-05 17:54:45 -0700 | [diff] [blame] | 78 | android:layout_below="@id/main_view" |
| 79 | android:visibility="gone" /> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 80 | |
| 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 Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 85 | android:layout_below="@id/divider" /> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 86 | |
Tony Wickham | aa2272f | 2017-06-22 14:22:40 -0700 | [diff] [blame] | 87 | <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 Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 95 | </RelativeLayout> |
| 96 | |
| 97 | </com.android.launcher3.notification.NotificationItemView> |