1<?xml version="1.0" encoding="utf-8"?>
2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:background="?android:attr/activatedBackgroundIndicator"
6 android:paddingTop="8dp"
7 android:paddingLeft="8dp"
8 android:paddingBottom="8dp"
9 android:id="@+id/presence_template">
10 <LinearLayout
11 android:layout_width="match_parent"
12 android:layout_height="wrap_content"
13 android:orientation="vertical"
14 android:layout_centerVertical="true"
15 android:layout_alignParentLeft="true"
16 android:layout_alignParentStart="true"
17 android:layout_toLeftOf="@+id/delete_button"
18 android:layout_toStartOf="@+id/delete_button"
19 android:layout_marginRight="8dp">
20 <TextView
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:id="@+id/presence_status_message"
24 android:textColor="?attr/color_text_primary"
25 android:textSize="?attr/TextSizeBody"/>
26 <TextView
27 android:id="@+id/status"
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:paddingBottom="1dp"
31 android:paddingLeft="4dp"
32 android:paddingRight="4dp"
33 android:paddingTop="1dp"
34 android:textAllCaps="true"
35 android:textColor="@color/white"
36 android:textSize="?attr/TextSizeInfo"
37 android:layout_marginTop="4dp"/>
38 </LinearLayout>
39 <ImageButton
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:id="@+id/delete_button"
43 android:layout_centerVertical="true"
44 android:layout_alignParentRight="true"
45 android:layout_alignParentEnd="true"
46 android:background="?attr/selectableItemBackgroundBorderless"
47 android:padding="@dimen/image_button_padding"
48 android:alpha="?attr/icon_alpha"
49 android:src="?attr/icon_remove"/>
50</RelativeLayout>