1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 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="ambient"
23    android:paddingStart="@dimen/notification_extra_margin_ambient"
24    android:paddingEnd="@dimen/notification_extra_margin_ambient"
25    >
26    <include layout="@layout/notification_template_header"
27        android:theme="@style/Theme.Material.Notification.Ambient" />
28
29    <LinearLayout
30            android:id="@+id/notification_action_list_margin_target"
31            android:layout_width="match_parent"
32            android:layout_height="match_parent"
33            android:layout_gravity="top"
34            android:layout_marginTop="@dimen/notification_content_margin_top"
35            android:layout_marginBottom="@dimen/notification_action_list_height"
36            android:paddingTop="4dp"
37            android:paddingBottom="6dp"
38            android:clipToPadding="false"
39            android:orientation="vertical">
40
41        <LinearLayout
42            android:id="@+id/notification_main_column"
43            android:layout_width="match_parent"
44            android:layout_height="wrap_content"
45            android:layout_gravity="top"
46            android:paddingStart="@dimen/notification_content_margin_start"
47            android:paddingEnd="@dimen/notification_content_margin_end"
48            android:clipToPadding="false"
49            android:minHeight="@dimen/notification_min_content_height"
50            android:orientation="vertical"
51            >
52            <TextView android:id="@+id/title"
53                android:textAppearance="@style/TextAppearance.Material.Notification.Title"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:singleLine="true"
57                android:ellipsize="marquee"
58                android:fadingEdge="horizontal"
59                android:textSize="20sp"
60                android:textColor="#ffffffff"
61            />
62            <TextView android:id="@+id/text"
63                android:layout_width="match_parent"
64                android:layout_height="0dp"
65                android:textAppearance="@style/TextAppearance.Material.Notification"
66                android:singleLine="false"
67                android:layout_weight="1"
68                android:gravity="top"
69                android:visibility="gone"
70                android:textSize="16sp"
71                android:textColor="#eeffffff"
72                android:layout_marginTop="4dp"
73                android:ellipsize="end"
74                android:maxLines="7"
75            />
76        </LinearLayout>
77    </LinearLayout>
78    <include layout="@layout/notification_material_action_list" />
79</FrameLayout>
80