activity_set_presence.xml

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