Roll NDK to pick std::deque patch.
[android_tools.git] / sdk / platforms / android-25 / data / res / layout / notification_template_header.xml
blob1f71a180cdf4463f6588896e5f8a8c9a269af187
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright (C) 2015 The Android Open Source Project
4   ~
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at
8   ~
9   ~      http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License
16   -->
18 <NotificationHeaderView
19     xmlns:android="http://schemas.android.com/apk/res/android"
20     android:id="@+id/notification_header"
21     android:orientation="horizontal"
22     android:layout_width="wrap_content"
23     android:layout_height="53dp"
24     android:clipChildren="false"
25     android:paddingTop="10dp"
26     android:paddingBottom="16dp"
27     android:paddingStart="@dimen/notification_content_margin_start"
28     android:paddingEnd="16dp">
29     <com.android.internal.widget.CachingIconView
30         android:id="@+id/icon"
31         android:layout_width="18dp"
32         android:layout_height="18dp"
33         android:layout_marginEnd="3dp"
34         />
35     <TextView
36         android:id="@+id/app_name_text"
37         android:layout_width="wrap_content"
38         android:layout_height="wrap_content"
39         android:textAppearance="@style/TextAppearance.Material.Notification.Info"
40         android:layout_marginStart="3dp"
41         android:layout_marginEnd="2dp"
42         android:singleLine="true"
43         />
44     <TextView
45         android:id="@+id/header_text_divider"
46         android:layout_width="wrap_content"
47         android:layout_height="wrap_content"
48         android:textAppearance="@style/TextAppearance.Material.Notification.Info"
49         android:layout_marginStart="2dp"
50         android:layout_marginEnd="2dp"
51         android:text="@string/notification_header_divider_symbol"
52         android:visibility="gone"/>
53     <TextView
54         android:id="@+id/header_text"
55         android:layout_width="wrap_content"
56         android:layout_height="wrap_content"
57         android:textAppearance="@style/TextAppearance.Material.Notification.Info"
58         android:layout_marginStart="2dp"
59         android:layout_marginEnd="2dp"
60         android:visibility="gone"
61         android:singleLine="true"/>
62     <TextView
63         android:id="@+id/time_divider"
64         android:layout_width="wrap_content"
65         android:layout_height="wrap_content"
66         android:textAppearance="@style/TextAppearance.Material.Notification.Info"
67         android:layout_marginStart="2dp"
68         android:layout_marginEnd="2dp"
69         android:text="@string/notification_header_divider_symbol"
70         android:singleLine="true"
71         android:visibility="gone"/>
72     <DateTimeView
73         android:id="@+id/time"
74         android:textAppearance="@style/TextAppearance.Material.Notification.Time"
75         android:layout_width="wrap_content"
76         android:layout_height="wrap_content"
77         android:layout_gravity="center"
78         android:layout_marginStart="2dp"
79         android:layout_marginEnd="2dp"
80         android:showRelative="true"
81         android:singleLine="true"
82         android:visibility="gone" />
83     <ViewStub
84         android:id="@+id/chronometer"
85         android:layout_width="wrap_content"
86         android:layout_height="wrap_content"
87         android:layout_marginStart="2dp"
88         android:layout_marginEnd="2dp"
89         android:layout="@layout/notification_template_part_chronometer"
90         android:visibility="gone"
91         />
92     <com.android.internal.widget.NotificationExpandButton
93         android:id="@+id/expand_button"
94         android:background="@null"
95         android:layout_width="wrap_content"
96         android:layout_height="wrap_content"
97         android:paddingTop="1dp"
98         android:visibility="gone"
99         android:contentDescription="@string/expand_button_content_description"
100         />
101     <ImageView android:id="@+id/profile_badge"
102         android:layout_width="@dimen/notification_badge_size"
103         android:layout_height="@dimen/notification_badge_size"
104         android:layout_gravity="center"
105         android:layout_marginStart="4dp"
106         android:paddingTop="1dp"
107         android:scaleType="fitCenter"
108         android:visibility="gone"
109         android:contentDescription="@string/notification_work_profile_content_description"
110         />
111 </NotificationHeaderView>