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    android:id="@+id/status_bar_latest_event_content"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:tag="inbox"
23    >
24    <include layout="@layout/notification_template_icon_group"
25        android:layout_width="@dimen/notification_large_icon_width"
26        android:layout_height="@dimen/notification_large_icon_height"
27        />
28    <LinearLayout
29        android:id="@+id/notification_main_column"
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:layout_gravity="top"
33        android:layout_marginStart="@dimen/notification_large_icon_width"
34        android:minHeight="@dimen/notification_large_icon_height"
35        android:orientation="vertical"
36        >
37        <include layout="@layout/notification_template_part_line1" />
38        <include layout="@layout/notification_template_part_line2" />
39
40        <!-- We can't have another vertical linear layout here with weight != 0 so this forces us to
41             put the badge on the first line. -->
42        <LinearLayout
43            android:layout_width="match_parent"
44            android:layout_weight="1"
45            android:layout_height="0dp"
46            android:layout_marginEnd="8dp"
47            android:orientation="horizontal"
48            >
49            <TextView android:id="@+id/inbox_text0"
50                android:textAppearance="@style/TextAppearance.Material.Notification"
51                android:layout_width="0dp"
52                android:layout_height="wrap_content"
53                android:singleLine="true"
54                android:ellipsize="end"
55                android:visibility="gone"
56                android:layout_weight="1"
57                />
58            <ImageView android:id="@+id/profile_badge_large_template"
59                android:layout_width="@dimen/notification_badge_size"
60                android:layout_height="@dimen/notification_badge_size"
61                android:layout_weight="0"
62                android:layout_marginStart="4dp"
63                android:scaleType="fitCenter"
64                android:visibility="gone"
65                android:contentDescription="@string/notification_work_profile_content_description"
66                />
67        </LinearLayout>
68        <TextView android:id="@+id/inbox_text1"
69            android:textAppearance="@style/TextAppearance.Material.Notification"
70            android:layout_width="match_parent"
71            android:layout_height="0dp"
72            android:layout_marginEnd="8dp"
73            android:singleLine="true"
74            android:ellipsize="end"
75            android:visibility="gone"
76            android:layout_weight="1"
77            />
78        <TextView android:id="@+id/inbox_text2"
79            android:textAppearance="@style/TextAppearance.Material.Notification"
80            android:layout_width="match_parent"
81            android:layout_height="0dp"
82            android:layout_marginEnd="8dp"
83            android:singleLine="true"
84            android:ellipsize="end"
85            android:visibility="gone"
86            android:layout_weight="1"
87            />
88        <TextView android:id="@+id/inbox_text3"
89            android:textAppearance="@style/TextAppearance.Material.Notification"
90            android:layout_width="match_parent"
91            android:layout_height="0dp"
92            android:layout_marginEnd="8dp"
93            android:singleLine="true"
94            android:ellipsize="end"
95            android:visibility="gone"
96            android:layout_weight="1"
97            />
98        <TextView android:id="@+id/inbox_text4"
99            android:textAppearance="@style/TextAppearance.Material.Notification"
100            android:layout_width="match_parent"
101            android:layout_height="0dp"
102            android:layout_marginEnd="8dp"
103            android:singleLine="true"
104            android:ellipsize="end"
105            android:visibility="gone"
106            android:layout_weight="1"
107            />
108        <TextView android:id="@+id/inbox_text5"
109            android:textAppearance="@style/TextAppearance.Material.Notification"
110            android:layout_width="match_parent"
111            android:layout_height="0dp"
112            android:layout_marginEnd="8dp"
113            android:singleLine="true"
114            android:ellipsize="end"
115            android:visibility="gone"
116            android:layout_weight="1"
117            />
118        <TextView android:id="@+id/inbox_text6"
119            android:textAppearance="@style/TextAppearance.Material.Notification"
120            android:layout_width="match_parent"
121            android:layout_height="0dp"
122            android:layout_marginEnd="8dp"
123            android:singleLine="true"
124            android:ellipsize="end"
125            android:visibility="gone"
126            android:layout_weight="1"
127            />
128        <TextView android:id="@+id/inbox_more"
129            android:textAppearance="@style/TextAppearance.Material.Notification"
130            android:layout_width="match_parent"
131            android:layout_height="0dp"
132            android:layout_marginEnd="8dp"
133            android:singleLine="true"
134            android:ellipsize="end"
135            android:visibility="gone"
136            android:layout_weight="1"
137            android:text="@android:string/notification_inbox_ellipsis"
138            />
139        <FrameLayout
140            android:id="@+id/inbox_end_pad"
141            android:layout_width="match_parent"
142            android:layout_height="10dp"
143            android:visibility="gone"
144            android:layout_weight="0"
145        />
146        <ImageView
147            android:layout_width="match_parent"
148            android:layout_height="1dip"
149            android:id="@+id/action_divider"
150            android:visibility="gone"
151            android:background="@drawable/notification_template_divider" />
152        <include
153            layout="@layout/notification_material_action_list"
154            android:layout_width="match_parent"
155            android:layout_height="wrap_content"
156            android:layout_marginLeft="-8dp"
157            android:layout_marginRight="-8dp"
158            android:layout_weight="0"
159            />
160        <ImageView
161            android:layout_width="match_parent"
162            android:layout_height="1dip"
163            android:id="@+id/overflow_divider"
164            android:visibility="visible"
165            android:background="@drawable/notification_template_divider" />
166        <include
167            layout="@layout/notification_template_part_line3"
168            android:layout_width="match_parent"
169            android:layout_height="wrap_content"
170            android:layout_marginEnd="8dp"
171            android:layout_marginTop="8dp"
172            android:layout_marginBottom="10dp" />
173    </LinearLayout>
174</FrameLayout>
175