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 | acaf5b3 | 2017-05-10 13:05:32 -0500 | [diff] [blame] | 22 | android:elevation="@dimen/deep_shortcuts_elevation"> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 23 | |
| 24 | <RelativeLayout |
| 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="match_parent" |
| 27 | android:orientation="vertical" |
| 28 | android:clipChildren="false"> |
| 29 | |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 30 | <FrameLayout |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 31 | android:id="@+id/header" |
| 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="@dimen/notification_header_height" |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 34 | android:paddingStart="@dimen/notification_padding_start" |
| 35 | android:paddingEnd="@dimen/notification_padding_end" |
Tony | acaf5b3 | 2017-05-10 13:05:32 -0500 | [diff] [blame] | 36 | android:background="@color/popup_background_color" |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 37 | android:elevation="@dimen/notification_elevation"> |
| 38 | <TextView |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 39 | android:id="@+id/notification_text" |
| 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="match_parent" |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 42 | android:layout_gravity="start" |
| 43 | android:gravity="center_vertical" |
| 44 | android:text="@string/notifications_header" |
| 45 | android:textSize="@dimen/notification_header_text_size" |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 46 | android:textColor="?android:attr/textColorSecondary" /> |
Tony Wickham | ce44516 | 2017-04-10 14:05:34 -0700 | [diff] [blame] | 47 | <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 Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 57 | |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 58 | <include layout="@layout/notification_main" |
| 59 | android:id="@+id/main_view" |
| 60 | android:layout_width="match_parent" |
Tony Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 61 | 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" |
Tony | 0b8a6fe | 2017-05-09 19:23:47 -0500 | [diff] [blame] | 68 | android:background="?android:attr/listDivider" |
Tony Wickham | 79b176e | 2017-06-05 17:54:45 -0700 | [diff] [blame^] | 69 | android:layout_below="@id/main_view" |
| 70 | android:visibility="gone" /> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 71 | |
| 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 Wickham | 9407d4a | 2017-02-24 15:08:13 -0800 | [diff] [blame] | 76 | android:layout_below="@id/divider" /> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 77 | |
| 78 | </RelativeLayout> |
| 79 | |
| 80 | </com.android.launcher3.notification.NotificationItemView> |