• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<merge
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content">
21
22    <!-- header -->
23    <FrameLayout
24        android:id="@+id/header"
25        android:layout_width="match_parent"
26        android:layout_height="@dimen/notification_header_height"
27        android:paddingEnd="@dimen/notification_padding_end"
28        android:paddingStart="@dimen/notification_padding_start">
29        <TextView
30            android:id="@+id/notification_text"
31            android:layout_width="wrap_content"
32            android:layout_height="match_parent"
33            android:layout_gravity="start"
34            android:gravity="center_vertical"
35            android:text="@string/notifications_header"
36            android:textColor="?android:attr/textColorPrimary"
37            android:textSize="@dimen/notification_header_text_size" />
38        <TextView
39            android:id="@+id/notification_count"
40            android:layout_width="@dimen/notification_icon_size"
41            android:layout_height="match_parent"
42            android:layout_gravity="end"
43            android:fontFamily="sans-serif-medium"
44            android:gravity="center"
45            android:textColor="?android:attr/textColorPrimary"
46            android:textSize="@dimen/notification_header_count_text_size" />
47    </FrameLayout>
48
49    <!-- Main view -->
50    <com.android.launcher3.notification.NotificationMainView
51        android:id="@+id/main_view"
52        android:layout_width="match_parent"
53        android:layout_height="@dimen/notification_main_height"
54        android:background="@drawable/bg_notification_content"
55        android:focusable="true" >
56
57        <LinearLayout
58            android:id="@+id/text_and_background"
59            android:layout_width="match_parent"
60            android:layout_height="match_parent"
61            android:background="?attr/popupColorPrimary"
62            android:gravity="center_vertical"
63            android:orientation="vertical"
64            android:paddingBottom="14dp"
65            android:paddingEnd="@dimen/notification_main_text_padding_end"
66            android:paddingStart="@dimen/notification_padding_start">
67            <TextView
68                android:id="@+id/title"
69                android:layout_width="match_parent"
70                android:layout_height="wrap_content"
71                android:ellipsize="end"
72                android:fontFamily="sans-serif"
73                android:lines="1"
74                android:textAlignment="viewStart"
75                android:textColor="?android:attr/textColorPrimary"
76                android:textSize="@dimen/notification_main_title_size" />
77
78            <TextView
79                android:id="@+id/text"
80                android:layout_width="match_parent"
81                android:layout_height="wrap_content"
82                android:ellipsize="end"
83                android:fontFamily="sans-serif"
84                android:lines="1"
85                android:textColor="?android:attr/textColorSecondary"
86                android:textSize="@dimen/notification_main_text_size" />
87        </LinearLayout>
88
89        <View
90            android:id="@+id/popup_item_icon"
91            android:layout_width="@dimen/notification_icon_size"
92            android:layout_height="@dimen/notification_icon_size"
93            android:layout_gravity="center_vertical|end"
94            android:layout_marginBottom="7dp"
95            android:layout_marginEnd="@dimen/notification_padding_end" />
96
97    </com.android.launcher3.notification.NotificationMainView>
98
99    <!-- Divider -->
100    <View
101        android:id="@+id/divider"
102        android:layout_width="match_parent"
103        android:layout_height="@dimen/popup_item_divider_height"
104        android:layout_below="@id/main_view"
105        android:background="?attr/popupColorTertiary" />
106
107    <!-- Footer -->
108    <com.android.launcher3.notification.NotificationFooterLayout
109        android:id="@+id/footer"
110        android:layout_width="match_parent"
111        android:layout_height="@dimen/notification_footer_height"
112        android:layout_gravity="center_vertical"
113        android:clipChildren="false">
114
115        <LinearLayout
116            android:id="@+id/icon_row"
117            android:layout_width="match_parent"
118            android:layout_height="match_parent"
119            android:clipChildren="false"
120            android:clipToPadding="false"
121            android:gravity="end|center_vertical"
122            android:orientation="horizontal"
123            android:padding="@dimen/notification_footer_icon_row_padding"/>
124
125        <View
126            android:id="@+id/overflow"
127            android:layout_width="@dimen/horizontal_ellipsis_size"
128            android:layout_height="@dimen/horizontal_ellipsis_size"
129            android:layout_gravity="start|center_vertical"
130            android:layout_marginStart="@dimen/horizontal_ellipsis_offset"
131            android:background="@drawable/horizontal_ellipsis" />
132
133    </com.android.launcher3.notification.NotificationFooterLayout>
134</merge>