activity_pick_server.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android">
 3
 4    <LinearLayout
 5
 6        android:layout_width="match_parent"
 7        android:layout_height="match_parent"
 8        android:orientation="vertical">
 9
10        <include android:id="@+id/toolbar" layout="@layout/toolbar" />
11
12        <ScrollView
13            android:layout_width="match_parent"
14            android:layout_height="match_parent"
15            android:fillViewport="true">
16
17            <RelativeLayout
18                android:layout_width="match_parent"
19                android:layout_height="match_parent"
20                android:background="?attr/color_background_primary">
21
22                <LinearLayout
23                    android:id="@+id/linearLayout"
24                    android:layout_width="match_parent"
25                    android:layout_height="wrap_content"
26                    android:layout_alignParentStart="true"
27                    android:layout_alignParentLeft="true"
28                    android:layout_alignParentBottom="true"
29                    android:minHeight="256dp"
30                    android:orientation="vertical"
31                    android:paddingLeft="16dp"
32                    android:paddingRight="16dp"
33                    android:paddingBottom="10dp">
34
35                    <Space
36                        android:layout_width="match_parent"
37                        android:layout_height="0dp"
38                        android:layout_weight="1" />
39
40                    <TextView
41                        android:layout_width="wrap_content"
42                        android:layout_height="wrap_content"
43                        android:text="@string/pick_a_server"
44                        android:textAppearance="@style/TextAppearance.Conversations.Title" />
45
46                    <TextView
47                        android:layout_width="wrap_content"
48                        android:layout_height="wrap_content"
49                        android:layout_marginTop="8dp"
50                        android:text="@string/server_select_text"
51                        android:textAppearance="@style/TextAppearance.Conversations.Body1" />
52
53                    <Button
54                        android:id="@+id/use_cim"
55                        style="@style/Widget.Conversations.Button.Borderless"
56                        android:layout_width="wrap_content"
57                        android:layout_height="wrap_content"
58                        android:layout_gravity="right"
59                        android:text="@string/use_conversations.im"
60                        android:textColor="?colorAccent" />
61
62                    <Button
63                        android:id="@+id/use_own_provider"
64                        style="@style/Widget.Conversations.Button.Borderless"
65                        android:layout_width="wrap_content"
66                        android:layout_height="wrap_content"
67                        android:layout_gravity="right"
68                        android:text="@string/use_own_provider"
69                        android:textColor="?android:textColorSecondary" />
70                </LinearLayout>
71
72                <RelativeLayout
73                    android:layout_width="match_parent"
74                    android:layout_height="match_parent"
75                    android:layout_above="@+id/linearLayout"
76                    android:layout_alignParentStart="true"
77                    android:layout_alignParentLeft="true">
78
79                    <ImageView
80                        android:layout_width="wrap_content"
81                        android:layout_height="wrap_content"
82                        android:layout_centerHorizontal="true"
83                        android:layout_centerVertical="true"
84                        android:padding="8dp"
85                        android:src="@drawable/main_logo" />
86                </RelativeLayout>
87            </RelativeLayout>
88        </ScrollView>
89    </LinearLayout>
90</layout>