notification_template_material_inbox.xml revision 457a10d29c151664fc274c06be7e44f813b12767
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    <include layout="@layout/notification_template_icon_group"
27        android:layout_width="@dimen/notification_large_icon_width"
28        android:layout_height="@dimen/notification_large_icon_height"
29        />
30    <LinearLayout
31        android:layout_width="match_parent"
32        android:layout_height="wrap_content"
33        android:layout_gravity="top"
34        android:layout_marginStart="@dimen/notification_large_icon_width"
35        android:minHeight="@dimen/notification_large_icon_height"
36        android:orientation="vertical"
37        >
38        <include layout="@layout/notification_template_part_line1" />
39        <include layout="@layout/notification_template_part_line2" />
40
41        <!-- We can't have another vertical linear layout here with weight != 0 so this forces us to
42             put the badge on the first line. -->
43        <LinearLayout
44            android:layout_width="match_parent"
45            android:layout_weight="1"
46            android:layout_height="0dp"
47            android:layout_marginEnd="8dp"
48            android:orientation="horizontal"
49            >
50            <TextView android:id="@+id/inbox_text0"
51                android:textAppearance="@style/TextAppearance.Material.Notification"
52                android:layout_width="0dp"
53                android:layout_height="wrap_content"
54                android:singleLine="true"
55                android:ellipsize="end"
56                android:visibility="gone"
57                android:layout_weight="1"
58                />
59            <ImageView android:id="@+id/profile_badge_large_template"
60                android:layout_width="@dimen/notification_badge_size"
61                android:layout_height="@dimen/notification_badge_size"
62                android:layout_weight="0"
63                android:layout_marginStart="4dp"
64                android:scaleType="fitCenter"
65                android:visibility="gone"
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/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