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