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