welcome.xml

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