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