1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2018 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/notification_container"
19    android:layout_width="wrap_content"
20    android:layout_height="wrap_content"
21    android:background="?android:attr/selectableItemBackground"
22    android:nextFocusLeft="@id/notification_container"
23    android:nextFocusRight="@id/notification_container"
24    android:clickable="true"
25    android:focusable="true"
26    android:orientation="horizontal"
27    android:paddingBottom="@dimen/notification_panel_item_padding_bottom"
28    android:paddingEnd="@dimen/notification_panel_item_padding_end"
29    android:paddingStart="@dimen/notification_panel_item_padding_start"
30    android:paddingTop="@dimen/notification_panel_item_padding_top">
31
32    <ImageView
33        android:id="@+id/notification_icon"
34        android:layout_width="@dimen/notification_panel_item_icon_size"
35        android:layout_height="@dimen/notification_panel_item_icon_size"
36        android:layout_gravity="center_vertical"
37        android:layout_marginEnd="@dimen/notification_panel_item_icon_margin_end"
38        android:tint="@color/notification_icon_tint" />
39
40    <LinearLayout
41        android:layout_width="@dimen/notification_panel_item_text_width"
42        android:layout_height="wrap_content"
43        android:layout_gravity="center_vertical"
44        android:orientation="vertical">
45
46        <TextView
47            android:id="@+id/notification_title"
48            android:layout_width="wrap_content"
49            android:layout_height="wrap_content"
50            android:layout_marginBottom="@dimen/notification_panel_item_text_margin_bottom"
51            android:ellipsize="end"
52            android:fontFamily="sans-serif-condensed"
53            android:maxLines="1"
54            android:textColor="@color/primary_text_color"
55            android:textSize="@dimen/notification_panel_item_primary_text_size" />
56
57        <TextView
58            android:id="@+id/notification_text"
59            android:layout_width="wrap_content"
60            android:layout_height="wrap_content"
61            android:ellipsize="end"
62            android:fontFamily="sans-serif-condensed"
63            android:maxLines="1"
64            android:textColor="@color/secondary_text_color"
65            android:textSize="@dimen/notification_panel_item_secondary_text_size" />
66    </LinearLayout>
67</LinearLayout>