notification_template_material_media.xml revision 41ad39421dabc86199540e6750d5fae34fade493
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2014 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  -->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:internal="http://schemas.android.com/apk/prv/res/android"
20    android:id="@+id/status_bar_latest_event_content"
21    android:layout_width="match_parent"
22    android:layout_height="64dp"
23    android:orientation="horizontal"
24    internal:layout_minHeight="64dp"
25    internal:layout_maxHeight="64dp"
26    >
27    <include layout="@layout/notification_template_icon_group"
28        android:layout_width="@dimen/notification_large_icon_width"
29        android:layout_height="@dimen/notification_large_icon_height"
30        android:layout_weight="0"
31        />
32    <LinearLayout
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        android:layout_weight="1"
36        android:layout_gravity="fill_vertical"
37        android:minHeight="@dimen/notification_large_icon_height"
38        android:orientation="vertical"
39        android:paddingEnd="8dp"
40        android:paddingTop="2dp"
41        android:paddingBottom="2dp"
42        android:gravity="top"
43        >
44        <LinearLayout
45            android:id="@+id/line1"
46            android:layout_width="match_parent"
47            android:layout_height="wrap_content"
48            android:paddingTop="6dp"
49            android:layout_marginStart="8dp"
50            android:orientation="horizontal"
51            >
52            <TextView android:id="@+id/title"
53                android:textAppearance="@style/TextAppearance.Material.Notification.Title"
54                android:layout_width="match_parent"
55                android:layout_height="wrap_content"
56                android:singleLine="true"
57                android:ellipsize="marquee"
58                android:fadingEdge="horizontal"
59                android:layout_weight="1"
60                />
61            <ViewStub android:id="@+id/time"
62                android:layout_width="wrap_content"
63                android:layout_height="wrap_content"
64                android:layout_weight="0"
65                android:visibility="gone"
66                android:layout="@layout/notification_template_part_time"
67                />
68            <ViewStub android:id="@+id/chronometer"
69                android:layout_width="wrap_content"
70                android:layout_height="wrap_content"
71                android:layout_weight="0"
72                android:visibility="gone"
73                android:layout="@layout/notification_template_part_chronometer"
74                />
75        </LinearLayout>
76        <TextView android:id="@+id/text2"
77            android:textAppearance="@style/TextAppearance.Material.Notification.Line2"
78            android:layout_width="match_parent"
79            android:layout_height="wrap_content"
80            android:layout_marginTop="-2dp"
81            android:layout_marginBottom="-2dp"
82            android:layout_marginStart="8dp"
83            android:singleLine="true"
84            android:fadingEdge="horizontal"
85            android:ellipsize="marquee"
86            android:visibility="gone"
87            />
88        <ProgressBar
89            android:id="@android:id/progress"
90            android:layout_width="match_parent"
91            android:layout_height="12dp"
92            android:layout_marginStart="8dp"
93            android:visibility="gone"
94            style="@style/Widget.Material.Notification.ProgressBar"
95            />
96        <LinearLayout
97            android:id="@+id/line3"
98            android:layout_width="match_parent"
99            android:layout_height="wrap_content"
100            android:orientation="horizontal"
101            android:gravity="center_vertical"
102            android:layout_marginStart="8dp"
103            >
104            <TextView android:id="@+id/text"
105                android:textAppearance="@style/TextAppearance.Material.Notification"
106                android:layout_width="0dp"
107                android:layout_height="wrap_content"
108                android:layout_weight="1"
109                android:layout_gravity="center"
110                android:singleLine="true"
111                android:ellipsize="marquee"
112                android:fadingEdge="horizontal"
113                />
114            <TextView android:id="@+id/info"
115                android:textAppearance="@style/TextAppearance.Material.Notification.Info"
116                android:layout_width="wrap_content"
117                android:layout_height="wrap_content"
118                android:layout_gravity="center"
119                android:layout_weight="0"
120                android:singleLine="true"
121                android:gravity="center"
122                android:paddingStart="8dp"
123                />
124        </LinearLayout>
125    </LinearLayout>
126    <LinearLayout
127        android:id="@+id/actions"
128        android:layout_width="wrap_content"
129        android:layout_height="match_parent"
130        android:layout_gravity="center_vertical|end"
131        android:orientation="horizontal"
132        >
133        <!-- media buttons will be added here -->
134    </LinearLayout>
135</LinearLayout>
136