| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2017 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <merge |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <!-- header --> |
| <FrameLayout |
| android:id="@+id/header" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/notification_header_height" |
| android:paddingEnd="@dimen/notification_padding_end" |
| android:paddingStart="@dimen/notification_padding_start"> |
| <TextView |
| android:id="@+id/notification_text" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_gravity="start" |
| android:gravity="center_vertical" |
| android:text="@string/notifications_header" |
| android:textColor="?android:attr/textColorPrimary" |
| android:textSize="@dimen/notification_header_text_size" /> |
| <TextView |
| android:id="@+id/notification_count" |
| android:layout_width="@dimen/notification_icon_size" |
| android:layout_height="match_parent" |
| android:layout_gravity="end" |
| android:fontFamily="sans-serif-medium" |
| android:gravity="center" |
| android:textColor="?android:attr/textColorPrimary" |
| android:textSize="@dimen/notification_header_count_text_size" /> |
| </FrameLayout> |
| |
| <!-- Main view --> |
| <com.android.launcher3.notification.NotificationMainView |
| android:id="@+id/main_view" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/notification_main_height" |
| android:background="@drawable/bg_notification_content" |
| android:focusable="true" > |
| |
| <LinearLayout |
| android:id="@+id/text_and_background" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="?attr/popupColorPrimary" |
| android:gravity="center_vertical" |
| android:orientation="vertical" |
| android:paddingBottom="14dp" |
| android:paddingEnd="@dimen/notification_main_text_padding_end" |
| android:paddingStart="@dimen/notification_padding_start"> |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:fontFamily="sans-serif" |
| android:lines="1" |
| android:textAlignment="viewStart" |
| android:textColor="?android:attr/textColorPrimary" |
| android:textSize="@dimen/notification_main_title_size" /> |
| |
| <TextView |
| android:id="@+id/text" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:fontFamily="sans-serif" |
| android:lines="1" |
| android:textColor="?android:attr/textColorSecondary" |
| android:textSize="@dimen/notification_main_text_size" /> |
| </LinearLayout> |
| |
| <View |
| android:id="@+id/popup_item_icon" |
| android:layout_width="@dimen/notification_icon_size" |
| android:layout_height="@dimen/notification_icon_size" |
| android:layout_gravity="center_vertical|end" |
| android:layout_marginBottom="7dp" |
| android:layout_marginEnd="@dimen/notification_padding_end" /> |
| |
| </com.android.launcher3.notification.NotificationMainView> |
| |
| <!-- Divider --> |
| <View |
| android:id="@+id/divider" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/popup_item_divider_height" |
| android:layout_below="@id/main_view" |
| android:background="?attr/popupColorTertiary" /> |
| |
| <!-- Footer --> |
| <com.android.launcher3.notification.NotificationFooterLayout |
| android:id="@+id/footer" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/notification_footer_height" |
| android:layout_gravity="center_vertical" |
| android:clipChildren="false"> |
| |
| <LinearLayout |
| android:id="@+id/icon_row" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:clipChildren="false" |
| android:clipToPadding="false" |
| android:gravity="end|center_vertical" |
| android:orientation="horizontal" |
| android:padding="@dimen/notification_footer_icon_row_padding"/> |
| |
| <View |
| android:id="@+id/overflow" |
| android:layout_width="@dimen/horizontal_ellipsis_size" |
| android:layout_height="@dimen/horizontal_ellipsis_size" |
| android:layout_gravity="start|center_vertical" |
| android:layout_marginStart="@dimen/horizontal_ellipsis_offset" |
| android:background="@drawable/horizontal_ellipsis" /> |
| |
| </com.android.launcher3.notification.NotificationFooterLayout> |
| </merge> |