summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/resources/layout/restricted_firstrun_welcome_fragment.xml
blob: 94ee43b7b4c32e11be694b655064483be0126746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:fillViewport="true"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/restricted_profile_background_gold"
        android:minHeight="@dimen/firstrun_min_height"
        android:orientation="vertical"
        android:weightSum="50">

        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="21"
            android:padding="30dp">

            <TextView
                android:layout_width="320dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:background="@color/restricted_profile_background_green"
                android:gravity="center"
                android:paddingBottom="40dp"
                android:paddingLeft="30dp"
                android:paddingRight="30dp"
                android:paddingTop="40dp"
                android:text="@string/firstrun_welcome_restricted"
                android:textColor="#ffffff"
                android:textSize="22sp" />

        </FrameLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="29"
            android:background="@color/android:white"
            android:gravity="center_horizontal"
            android:orientation="vertical"
            android:padding="40dp">

            <Button
                android:id="@+id/welcome_browse"
                style="@style/Widget.Firstrun.Button"
                android:layout_gravity="center"
                android:layout_marginBottom="20dp"
                android:background="@drawable/button_background_action_blue_round"
                android:text="@string/firstrun_welcome_button_browser" />

            <TextView
                android:id="@+id/learn_more_link"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:padding="20dp"
                android:text="@string/pref_learn_more"
                android:textAppearance="@style/TextAppearance.FirstrunRegular.Link" />

        </LinearLayout>
    </LinearLayout>

</ScrollView>