1<!--
2     Copyright (C) 2013 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_width="match_parent"
18    android:layout_height="wrap_content"
19    android:paddingBottom="6dp"
20    android:paddingTop="6dp"
21    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
22    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
23    android:orientation="vertical"
24    android:background="?android:attr/selectableItemBackground"
25    >
26
27    <LinearLayout
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:minHeight="@*android:dimen/status_bar_icon_size"
31        android:gravity="center_vertical"
32        android:layout_marginBottom="11dp">
33
34        <ImageView
35            android:id="@+id/icon"
36            android:layout_height="24dp"
37            android:layout_width="24dp"
38            android:padding="4dp"
39            android:layout_centerVertical="true"
40            android:layout_marginEnd="14dp"
41            android:contentDescription="@null"
42            android:scaleType="centerInside" />
43
44        <TextView
45            android:id="@+id/pkgname"
46            android:layout_weight="1"
47            android:layout_width="0dp"
48            android:layout_height="wrap_content"
49            android:layout_centerVertical="true"
50            android:ellipsize="end"
51            android:singleLine="true"
52            android:textColor="?android:attr/textColorPrimary"
53            android:textSize="12sp"
54            android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"
55            android:marqueeRepeatLimit = "marquee_forever"
56            android:scrollHorizontally = "true"
57            android:textAlignment="viewStart" />
58
59        <ImageView
60            android:id="@+id/alerted_icon"
61            android:layout_width="wrap_content"
62            android:layout_height="wrap_content"
63            android:layout_centerVertical="true"
64            android:layout_marginStart="6dp"
65            android:scaleType="fitCenter"
66            android:visibility="gone"
67            android:tint="?android:attr/textColorSecondary"
68            android:src="@drawable/ic_notifications_alert"
69        />
70
71        <ImageView
72            android:id="@+id/profile_badge"
73            android:layout_width="wrap_content"
74            android:layout_height="wrap_content"
75            android:layout_marginEnd="6dp"
76            android:scaleType="fitCenter"
77            android:contentDescription="@*android:string/notification_work_profile_content_description"
78            android:layout_toStartOf="@id/timestamp"
79        />
80
81        <DateTimeView
82            android:id="@+id/timestamp"
83            android:layout_width="wrap_content"
84            android:layout_height="wrap_content"
85            android:layout_alignParentEnd="true"
86            android:ellipsize="end"
87            android:singleLine="true"
88            android:textSize="12sp"
89            android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"
90            android:textAlignment="viewEnd"
91        />
92    </LinearLayout>
93
94    <LinearLayout
95        android:layout_width="match_parent"
96        android:layout_height="wrap_content"
97        android:orientation="vertical"
98        android:layout_marginStart="30dp"
99        android:layout_marginBottom="6dp"
100        >
101
102        <TextView
103            android:id="@+id/title"
104            android:layout_width="match_parent"
105            android:layout_height="wrap_content"
106            android:layout_gravity="left|center_vertical"
107            android:ellipsize="end"
108            android:singleLine="true"
109            android:textColor="?android:attr/textColorPrimary"
110            android:textAlignment="viewStart"
111        />
112
113        <TextView
114            android:id="@+id/text"
115            android:layout_width="match_parent"
116            android:layout_height="wrap_content"
117            android:layout_gravity="left|center_vertical"
118            android:ellipsize="end"
119            android:singleLine="true"
120            android:textColor="?android:attr/textColorPrimary"
121            android:textAppearance="?android:attr/textAppearanceSmall"
122            android:textAlignment="viewStart"
123        />
124
125    </LinearLayout>
126
127    <LinearLayout
128        android:id="@+id/extra"
129        android:layout_width="match_parent"
130        android:layout_height="wrap_content"
131        android:orientation="vertical"
132    >
133        <TextView
134                android:id="@+id/notification_extra"
135                android:layout_width="match_parent"
136                android:layout_height="wrap_content"
137                android:orientation="horizontal"
138                android:layout_marginStart="30dp"
139                android:textColor="?android:attr/textColorPrimary"
140                android:textSize="10sp"
141                android:fontFamily="monospace"
142                android:textAlignment="viewStart"
143        />
144        <TextView
145            android:id="@+id/ranking_extra"
146            android:layout_width="match_parent"
147            android:layout_height="wrap_content"
148            android:orientation="horizontal"
149            android:layout_marginStart="30dp"
150            android:layout_marginBottom="6dp"
151            android:textColor="?android:attr/textColorPrimary"
152            android:textSize="10sp"
153            android:fontFamily="monospace"
154            android:textAlignment="viewStart"
155        />
156    </LinearLayout>
157
158</LinearLayout>
159