• 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="wrap_content"
27        android:paddingEnd="@dimen/notification_padding"
28        android:paddingStart="@dimen/notification_padding">
29        <TextView
30            android:id="@+id/notification_text"
31            android:paddingTop="@dimen/notification_padding"
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:layout_gravity="bottom|start"
35            android:text="@string/notifications_header"
36            android:textColor="?android:attr/textColorPrimary"
37            android:textSize="@dimen/notification_header_text_size"
38            style="@style/TextHeadline"/>
39        <TextView
40            android:id="@+id/notification_count"
41            android:layout_width="@dimen/notification_circle_icon_size"
42            android:layout_height="@dimen/notification_circle_icon_size"
43            android:background="@drawable/notification_circle"
44            android:layout_gravity="bottom|end"
45            android:gravity="center"
46            android:textColor="?android:attr/textColorPrimary"
47            android:textSize="@dimen/notification_header_count_text_size"
48            style="@style/TextHeadline"/>
49    </FrameLayout>
50
51    <!-- Main view -->
52    <com.android.launcher3.notification.NotificationMainView
53        android:id="@+id/main_view"
54        android:layout_width="match_parent"
55        android:layout_height="wrap_content"
56        android:focusable="true" >
57
58        <LinearLayout
59            android:id="@+id/text_and_background"
60            android:layout_width="match_parent"
61            android:layout_height="match_parent"
62            android:background="?attr/popupColorPrimary"
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    </com.android.launcher3.notification.NotificationMainView>
99</merge>