1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<LinearLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:orientation="horizontal"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:paddingTop="4dip"
22    android:paddingBottom="4dip"
23    android:gravity="center_vertical"
24    android:minHeight="?android:attr/listPreferredItemHeight">
25
26    <ImageView
27        android:id="@+id/image"
28        android:layout_height="wrap_content"
29        android:layout_width="wrap_content"
30        android:paddingLeft="20dip"
31        android:paddingRight="20dip"
32        android:contentDescription="@string/acessibility_cal_notification"
33        android:src="@drawable/stat_notify_calendar" />
34
35    <LinearLayout
36        android:orientation="vertical"
37        android:paddingLeft="12dp"
38        android:layout_width="0dp"
39        android:layout_weight="1"
40        android:layout_height="wrap_content">
41
42        <TextView
43            android:id="@+id/title"
44            android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent.Title"
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            android:singleLine="true"
48            android:ellipsize="end" />
49        <TextView
50            android:id="@+id/text"
51            android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent"
52            android:layout_width="match_parent"
53            android:layout_height="wrap_content"
54            android:singleLine="true"
55            android:ellipsize="end" />
56    </LinearLayout>
57
58    <ImageButton
59        android:id="@+id/map_button"
60        android:layout_height="wrap_content"
61        android:layout_width="wrap_content"
62        android:layout_gravity="center_vertical|right"
63        android:src="@drawable/ic_map"
64        android:background="?android:attr/selectableItemBackground"
65        android:padding="8dip"
66        android:contentDescription="@string/map_label" />
67    <ImageButton
68        android:id="@+id/call_button"
69        android:layout_height="wrap_content"
70        android:layout_width="wrap_content"
71        android:layout_gravity="center_vertical|right"
72        android:src="@drawable/ic_call"
73        android:background="?android:attr/selectableItemBackground"
74        android:padding="8dip"
75        android:contentDescription="@string/call_label" />
76    <ImageButton
77        android:id="@+id/email_button"
78        android:layout_height="wrap_content"
79        android:layout_width="wrap_content"
80        android:layout_gravity="center_vertical|right"
81        android:src="@drawable/ic_menu_email_holo_dark"
82        android:background="?android:attr/selectableItemBackground"
83        android:padding="8dip"
84        android:contentDescription="@string/accessibility_email_notification" />
85    <ImageButton
86        android:id="@+id/snooze_button"
87        android:layout_height="wrap_content"
88        android:layout_width="wrap_content"
89        android:layout_gravity="center_vertical|right"
90        android:src="@drawable/ic_alarm_holo_dark"
91        android:background="?android:attr/selectableItemBackground"
92        android:padding="8dip"
93        android:contentDescription="@string/acessibility_snooze_notification" />
94
95    <!-- Add right padding if no buttons so notification text does not run too
96         close to edge.
97    -->
98    <TextView
99        android:id="@+id/end_padding"
100        android:layout_width="12dp"
101        android:layout_height="match_parent"
102        android:paddingRight="12dp" />
103
104</LinearLayout>
105