activity_set_presence.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
 3            android:layout_width="fill_parent"
 4            android:layout_height="fill_parent"
 5            android:background="?attr/color_background_secondary"
 6            android:id="@+id/scroll_view">
 7
 8    <LinearLayout
 9        android:layout_width="fill_parent"
10        android:layout_height="wrap_content"
11        android:orientation="vertical">
12
13        <LinearLayout
14            android:layout_width="match_parent"
15            android:layout_height="wrap_content"
16            android:layout_marginLeft="@dimen/activity_horizontal_margin"
17            android:layout_marginRight="@dimen/activity_horizontal_margin"
18            android:layout_marginTop="@dimen/activity_vertical_margin"
19            android:layout_marginBottom="@dimen/activity_vertical_margin"
20            android:background="?attr/infocard_border"
21            android:padding="@dimen/infocard_padding"
22            android:orientation="vertical">
23            <EditText
24                android:layout_width="match_parent"
25                android:layout_height="wrap_content"
26                android:inputType="textMultiLine"
27                android:hint="@string/status_message"
28                android:id="@+id/presence_status_message"
29                android:textColor="?attr/color_text_primary"
30                android:layout_marginBottom="8dp"
31                android:textSize="?attr/TextSizeBody"/>
32            <Spinner
33                android:layout_width="wrap_content"
34                android:layout_height="wrap_content"
35                android:id="@+id/presence_show"
36                android:layout_gravity="center_horizontal"/>
37            <CheckBox
38                android:layout_marginTop="16dp"
39                android:layout_marginBottom="16dp"
40                android:layout_width="wrap_content"
41                android:layout_height="wrap_content"
42                android:text="@string/all_accounts_on_this_device"
43                android:id="@+id/all_accounts"
44                android:textColor="?attr/color_text_primary"
45                android:textSize="?attr/TextSizeBody"/>
46            <Button
47                android:id="@+id/change_presence"
48                style="?android:attr/borderlessButtonStyle"
49                android:layout_marginRight="-8dp"
50                android:layout_marginBottom="-8dp"
51                android:layout_width="wrap_content"
52                android:layout_height="wrap_content"
53                android:layout_gravity="right"
54                android:text="@string/change_presence"
55                android:textColor="@color/accent"/>
56        </LinearLayout>
57    <LinearLayout
58        android:id="@+id/templates"
59        android:layout_width="match_parent"
60        android:layout_height="wrap_content"
61        android:layout_marginLeft="@dimen/activity_horizontal_margin"
62        android:layout_marginRight="@dimen/activity_horizontal_margin"
63        android:layout_marginTop="@dimen/activity_vertical_margin"
64        android:layout_marginBottom="@dimen/activity_vertical_margin"
65        android:background="?attr/infocard_border"
66        android:padding="@dimen/infocard_padding"
67        android:orientation="vertical"
68        android:divider="?android:dividerHorizontal"
69        android:showDividers="middle">
70        </LinearLayout>
71    </LinearLayout>
72</ScrollView>