1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:internal="http://schemas.android.com/apk/prv/res/android"
18    android:background="@android:drawable/notification_bg"
19    android:id="@+id/status_bar_latest_event_content"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    internal:layout_minHeight="65dp"
23    internal:layout_maxHeight="unbounded"
24    >
25    <ImageView android:id="@+id/icon"
26        android:layout_width="@dimen/notification_large_icon_width"
27        android:layout_height="@dimen/notification_large_icon_height"
28        android:background="@android:drawable/notification_template_icon_bg"
29        android:scaleType="center"
30        />
31    <LinearLayout
32        android:layout_width="match_parent"
33        android:layout_height="wrap_content"
34        android:layout_gravity="fill_vertical"
35        android:layout_marginStart="@dimen/notification_large_icon_width"
36        android:orientation="vertical"
37        android:paddingTop="0dp"
38        android:paddingBottom="2dp"
39        android:gravity="top"
40        >
41        <LinearLayout
42            android:layout_width="match_parent"
43            android:layout_height="wrap_content"
44            android:minHeight="@dimen/notification_large_icon_height"
45            android:orientation="vertical"
46            android:layout_marginStart="8dp"
47            android:layout_marginEnd="8dp"
48            android:layout_weight="1"
49            >
50            <LinearLayout
51                android:id="@+id/line1"
52                android:layout_width="match_parent"
53                android:layout_height="wrap_content"
54                android:paddingTop="8dp"
55                android:orientation="horizontal"
56                android:layout_gravity="top"
57                android:layout_weight="0"
58                >
59                <TextView android:id="@+id/title"
60                    android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title"
61                    android:layout_width="match_parent"
62                    android:layout_height="wrap_content"
63                    android:singleLine="true"
64                    android:ellipsize="marquee"
65                    android:fadingEdge="horizontal"
66                    android:layout_weight="1"
67                    />
68                <ViewStub android:id="@+id/time"
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_time"
74                    />
75                <ViewStub android:id="@+id/chronometer"
76                    android:layout_width="wrap_content"
77                    android:layout_height="wrap_content"
78                    android:layout_weight="0"
79                    android:visibility="gone"
80                    android:layout="@layout/notification_template_part_chronometer"
81                    />
82            </LinearLayout>
83            <TextView android:id="@+id/text2"
84                android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Line2"
85                android:layout_width="match_parent"
86                android:layout_height="wrap_content"
87                android:layout_marginTop="-2dp"
88                android:layout_marginBottom="-2dp"
89                android:layout_marginEnd="8dp"
90                android:singleLine="true"
91                android:fadingEdge="horizontal"
92                android:ellipsize="marquee"
93                android:layout_weight="0"
94                android:visibility="gone"
95                />
96            <ProgressBar
97                android:id="@android:id/progress"
98                android:layout_width="match_parent"
99                android:layout_height="12dp"
100                android:layout_marginBottom="8dp"
101                android:layout_marginEnd="8dp"
102                android:visibility="gone"
103                android:layout_weight="0"
104                style="?android:attr/progressBarStyleHorizontal"
105                />
106            <TextView android:id="@+id/big_text"
107                android:textAppearance="@style/TextAppearance.StatusBar.EventContent"
108                android:layout_width="match_parent"
109                android:layout_height="0dp"
110                android:layout_marginBottom="10dp"
111                android:layout_marginEnd="8dp"
112                android:singleLine="false"
113                android:visibility="gone"
114                android:maxLines="8"
115                android:ellipsize="end"
116                android:layout_weight="1"
117                />
118        </LinearLayout>
119        <ImageView
120            android:layout_width="match_parent"
121            android:layout_height="1dip"
122            android:layout_marginTop="-1px"
123            android:id="@+id/action_divider"
124            android:visibility="gone"
125            android:background="?android:attr/dividerHorizontal" />
126        <include
127            layout="@layout/notification_action_list"
128            android:layout_width="match_parent"
129            android:layout_height="0dp"
130            android:visibility="gone"
131            android:layout_weight="1"
132            />
133        <ImageView
134            android:layout_width="match_parent"
135            android:layout_height="1px"
136            android:id="@+id/overflow_divider"
137            android:layout_marginBottom="8dp"
138            android:visibility="visible"
139            android:background="?android:attr/dividerHorizontal" />
140        <LinearLayout
141            android:id="@+id/line3"
142            android:layout_width="match_parent"
143            android:layout_height="wrap_content"
144            android:layout_marginStart="8dp"
145            android:layout_marginBottom="8dp"
146            android:layout_marginEnd="8dp"
147            android:orientation="horizontal"
148            android:layout_weight="0"
149            android:gravity="center_vertical"
150            >
151            <TextView android:id="@+id/text"
152                android:textAppearance="@style/TextAppearance.StatusBar.EventContent"
153                android:layout_width="0dp"
154                android:layout_height="wrap_content"
155                android:layout_weight="1"
156                android:layout_gravity="center"
157                android:singleLine="true"
158                android:ellipsize="marquee"
159                android:fadingEdge="horizontal"
160                />
161            <TextView android:id="@+id/info"
162                android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info"
163                android:layout_width="wrap_content"
164                android:layout_height="wrap_content"
165                android:layout_gravity="center"
166                android:layout_weight="0"
167                android:singleLine="true"
168                android:gravity="center"
169                android:paddingStart="8dp"
170                />
171            <ImageView android:id="@+id/right_icon"
172                android:layout_width="16dp"
173                android:layout_height="16dp"
174                android:layout_gravity="center"
175                android:layout_weight="0"
176                android:layout_marginStart="8dp"
177                android:scaleType="centerInside"
178                android:visibility="gone"
179                android:drawableAlpha="153"
180                />
181        </LinearLayout>
182    </LinearLayout>
183</FrameLayout>
184