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.NotificationMainView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical">
22
23    <!-- header -->
24    <FrameLayout
25        android:id="@+id/header"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:paddingEnd="@dimen/notification_padding"
29        android:paddingStart="@dimen/notification_padding">
30        <TextView
31            android:id="@+id/notification_text"
32            android:paddingTop="@dimen/notification_padding"
33            android:layout_width="wrap_content"
34            android:layout_height="wrap_content"
35            android:layout_gravity="bottom|start"
36            android:text="@string/notifications_header"
37            android:textColor="?android:attr/textColorPrimary"
38            android:textSize="@dimen/notification_header_text_size"
39            style="@style/TextHeadline"/>
40        <TextView
41            android:id="@+id/notification_count"
42            android:layout_width="@dimen/notification_circle_icon_size"
43            android:layout_height="@dimen/notification_circle_icon_size"
44            android:background="@drawable/notification_circle"
45            android:layout_gravity="bottom|end"
46            android:gravity="center"
47            android:textColor="?android:attr/textColorPrimary"
48            android:textSize="@dimen/notification_header_count_text_size"
49            style="@style/TextHeadline"/>
50    </FrameLayout>
51
52    <!-- Main view -->
53    <FrameLayout
54        android:id="@+id/main_view"
55        android:layout_width="match_parent"
56        android:layout_height="wrap_content"
57        android:focusable="true" >
58
59        <LinearLayout
60            android:id="@+id/text_and_background"
61            android:layout_width="match_parent"
62            android:layout_height="match_parent"
63            android:gravity="center_vertical"
64            android:orientation="vertical"
65            android:paddingTop="@dimen/notification_padding"
66            android:paddingBottom="@dimen/notification_padding"
67            android:paddingEnd="@dimen/notification_padding"
68            android:paddingStart="@dimen/notification_main_text_padding_start">
69            <TextView
70                android:id="@+id/title"
71                android:layout_width="match_parent"
72                android:layout_height="wrap_content"
73                android:ellipsize="end"
74                android:lines="1"
75                android:textAlignment="viewStart"
76                android:textColor="?android:attr/textColorPrimary"
77                android:textSize="@dimen/notification_main_title_size"
78                style="@style/TextHeadline" />
79
80            <TextView
81                android:id="@+id/text"
82                android:layout_width="match_parent"
83                android:layout_height="wrap_content"
84                android:ellipsize="end"
85                android:lines="1"
86                android:textColor="?android:attr/textColorPrimary"
87                android:textSize="@dimen/notification_main_text_size" />
88        </LinearLayout>
89
90        <View
91            android:id="@+id/popup_item_icon"
92            android:layout_width="@dimen/notification_icon_size"
93            android:layout_height="@dimen/notification_icon_size"
94            android:layout_gravity="start"
95            android:layout_marginTop="@dimen/notification_padding"
96            android:layout_marginStart="@dimen/notification_icon_padding" />
97
98    </FrameLayout>
99</com.android.launcher3.notification.NotificationMainView>