dialog_presence.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android">
 3<LinearLayout android:orientation="vertical"
 4              android:layout_width="match_parent"
 5              android:layout_height="match_parent"
 6              android:paddingLeft="?attr/dialog_horizontal_padding"
 7              android:paddingRight="?attr/dialog_horizontal_padding"
 8              android:paddingBottom="?attr/dialog_vertical_padding"
 9              android:paddingTop="?attr/dialog_vertical_padding">
10
11    <RadioGroup
12        android:id="@+id/show"
13        android:layout_width="match_parent"
14        android:layout_height="wrap_content"
15        android:layout_marginBottom="?attr/dialog_vertical_padding">
16
17        <RadioButton
18            android:id="@+id/online"
19            android:layout_width="match_parent"
20            android:layout_height="wrap_content"
21            android:text="@string/presence_online"/>
22
23        <RadioButton
24            android:id="@+id/away"
25            android:layout_width="match_parent"
26            android:layout_height="wrap_content"
27            android:text="@string/presence_away"/>
28
29        <RadioButton
30            android:id="@+id/xa"
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:text="@string/presence_xa"/>
34
35        <RadioButton
36            android:id="@+id/dnd"
37            android:layout_width="match_parent"
38            android:layout_height="wrap_content"
39            android:text="@string/presence_dnd"/>
40    </RadioGroup>
41
42    <android.support.design.widget.TextInputLayout
43        android:layout_width="match_parent"
44        android:layout_height="wrap_content">
45    <eu.siacs.conversations.ui.widget.ImmediateAutoCompleteTextView
46        android:id="@+id/status_message"
47        android:layout_width="match_parent"
48        android:layout_height="wrap_content"
49        android:ems="10"
50        android:hint="@string/status_message"
51        android:inputType="textShortMessage"/>
52    </android.support.design.widget.TextInputLayout>
53
54</LinearLayout>
55</layout>