notification_template_material_big_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<FrameLayout 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="wrap_content"
23    internal:layout_minHeight="65dp"
24    internal:layout_maxHeight="unbounded"
25    >
26    <LinearLayout
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:layout_gravity="fill_vertical"
30        android:minHeight="@dimen/notification_large_icon_height"
31        android:orientation="vertical"
32        android:gravity="top"
33        >
34        <LinearLayout
35            android:layout_width="match_parent"
36            android:layout_height="wrap_content"
37            android:paddingStart="@dimen/notification_large_icon_width"
38            android:minHeight="@dimen/notification_large_icon_height"
39            android:paddingTop="2dp"
40            android:orientation="vertical"
41            >
42            <LinearLayout
43                android:id="@+id/line1"
44                android:layout_width="match_parent"
45                android:layout_height="wrap_content"
46                android:paddingTop="6dp"
47                android:layout_marginEnd="8dp"
48                android:layout_marginStart="8dp"
49                android:orientation="horizontal"
50                >
51                <TextView android:id="@+id/title"
52                    android:textAppearance="@style/TextAppearance.Material.Notification.Title"
53                    android:layout_width="match_parent"
54                    android:layout_height="wrap_content"
55                    android:singleLine="true"
56                    android:ellipsize="marquee"
57                    android:fadingEdge="horizontal"
58                    android:layout_weight="1"
59                    />
60                <ViewStub android:id="@+id/time"
61                    android:layout_width="wrap_content"
62                    android:layout_height="wrap_content"
63                    android:layout_weight="0"
64                    android:visibility="gone"
65                    android:layout="@layout/notification_template_part_time"
66                    />
67                <ViewStub android:id="@+id/chronometer"
68                    android:layout_width="wrap_content"
69                    android:layout_height="wrap_content"
70                    android:layout_weight="0"
71                    android:visibility="gone"
72                    android:layout="@layout/notification_template_part_chronometer"
73                    />
74            </LinearLayout>
75            <TextView android:id="@+id/text2"
76                android:textAppearance="@style/TextAppearance.Material.Notification.Line2"
77                android:layout_width="match_parent"
78                android:layout_height="wrap_content"
79                android:layout_marginTop="-2dp"
80                android:layout_marginBottom="-2dp"
81                android:layout_marginStart="8dp"
82                android:layout_marginEnd="8dp"
83                android:singleLine="true"
84                android:fadingEdge="horizontal"
85                android:ellipsize="marquee"
86                android:visibility="gone"
87                />
88            <TextView android:id="@+id/big_text"
89                android:textAppearance="@style/TextAppearance.Material.Notification"
90                android:layout_width="match_parent"
91                android:layout_height="wrap_content"
92                android:layout_marginStart="8dp"
93                android:layout_marginEnd="8dp"
94                android:singleLine="false"
95                android:visibility="gone"
96                />
97            <LinearLayout
98                android:id="@+id/line3"
99                android:layout_width="match_parent"
100                android:layout_height="wrap_content"
101                android:layout_marginStart="8dp"
102                android:layout_marginEnd="8dp"
103                android:orientation="horizontal"
104                android:gravity="center_vertical"
105                >
106                <TextView android:id="@+id/text"
107                    android:textAppearance="@style/TextAppearance.Material.Notification"
108                    android:layout_width="0dp"
109                    android:layout_height="wrap_content"
110                    android:layout_weight="1"
111                    android:layout_gravity="center"
112                    android:singleLine="true"
113                    android:ellipsize="marquee"
114                    android:fadingEdge="horizontal"
115                    />
116                <TextView android:id="@+id/info"
117                    android:textAppearance="@style/TextAppearance.Material.Notification.Info"
118                    android:layout_width="wrap_content"
119                    android:layout_height="wrap_content"
120                    android:layout_gravity="center"
121                    android:layout_weight="0"
122                    android:singleLine="true"
123                    android:gravity="center"
124                    android:paddingStart="8dp"
125                    />
126            </LinearLayout>
127        </LinearLayout>
128        <FrameLayout
129                android:layout_width="match_parent"
130                android:layout_height="60dp"
131                android:id="@+id/media_action_area"
132                android:background="@color/notification_media_action_bg"
133                >
134            <LinearLayout
135                android:id="@+id/actions"
136                android:layout_width="match_parent"
137                android:layout_height="match_parent"
138                android:layout_marginTop="6dp"
139                android:orientation="horizontal"
140                >
141                <!-- media buttons will be added here -->
142            </LinearLayout>
143            <ProgressBar
144                android:id="@android:id/progress"
145                android:layout_width="match_parent"
146                android:layout_height="6dp"
147                android:layout_gravity="top"
148                android:visibility="gone"
149                style="@style/Widget.Material.Notification.ProgressBar.Media"
150                />
151        </FrameLayout>
152    </LinearLayout>
153    <include layout="@layout/notification_template_icon_group"
154             android:layout_width="@dimen/notification_large_icon_width"
155             android:layout_height="@dimen/notification_large_icon_height"
156            />
157</FrameLayout>
158