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        android:layout_width="match_parent"
 6        android:layout_height="match_parent"
 7        android:fitsSystemWindows="true"
 8        android:orientation="vertical">
 9
10        <com.google.android.material.appbar.AppBarLayout
11            android:layout_width="match_parent"
12            android:layout_height="wrap_content">
13
14            <com.google.android.material.appbar.MaterialToolbar
15                android:id="@+id/toolbar"
16                android:layout_width="match_parent"
17                android:layout_height="wrap_content"
18                android:minHeight="?attr/actionBarSize" />
19
20        </com.google.android.material.appbar.AppBarLayout>
21
22        <ScrollView
23            android:layout_width="match_parent"
24            android:layout_height="match_parent"
25            android:fillViewport="true">
26
27            <RelativeLayout
28                android:layout_width="match_parent"
29                android:layout_height="wrap_content">
30
31                <LinearLayout
32                    android:id="@+id/linearLayout"
33                    android:layout_width="match_parent"
34                    android:layout_height="wrap_content"
35                    android:layout_alignParentStart="true"
36                    android:layout_alignParentBottom="true"
37                    android:minHeight="256dp"
38                    android:orientation="vertical"
39                    android:paddingLeft="16dp"
40                    android:paddingRight="16dp"
41                    android:paddingBottom="10dp">
42
43                    <Space
44                        android:layout_width="match_parent"
45                        android:layout_height="0dp"
46                        android:layout_weight="1" />
47
48                    <TextView
49                        android:layout_width="wrap_content"
50                        android:layout_height="wrap_content"
51                        android:text="@string/pick_a_server"
52                        android:textAppearance="?textAppearanceTitleLarge" />
53
54                    <TextView
55                        android:layout_width="wrap_content"
56                        android:layout_height="wrap_content"
57                        android:layout_marginTop="8dp"
58                        android:layout_marginBottom="16dp"
59                        android:text="@string/server_select_text"
60                        android:textAppearance="?textAppearanceBodyMedium" />
61
62                    <Button
63                        android:id="@+id/use_cim"
64                        style="@style/Widget.Material3.Button.TonalButton"
65                        android:layout_width="wrap_content"
66                        android:layout_height="wrap_content"
67                        android:layout_gravity="end"
68                        android:text="@string/use_conversations.im" />
69
70                    <Button
71                        android:id="@+id/use_own_provider"
72                        style="@style/Widget.Material3.Button.TextButton"
73                        android:layout_width="wrap_content"
74                        android:layout_height="wrap_content"
75                        android:layout_gravity="end"
76                        android:text="@string/use_own_provider" />
77                </LinearLayout>
78
79                <RelativeLayout
80                    android:layout_width="match_parent"
81                    android:layout_height="match_parent"
82                    android:layout_above="@+id/linearLayout"
83                    android:layout_alignParentStart="true">
84
85                    <ImageView
86                        android:layout_width="wrap_content"
87                        android:layout_height="wrap_content"
88                        android:layout_centerHorizontal="true"
89                        android:layout_centerVertical="true"
90                        android:padding="8dp"
91                        android:src="@drawable/main_logo" />
92                </RelativeLayout>
93            </RelativeLayout>
94        </ScrollView>
95    </LinearLayout>
96</layout>