summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/resources/layout/firstrun_basepanel_checkable_fragment.xml
blob: feedab735cbf3b195daa538dbb9d5bd9dd742701 (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
<?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_height="wrap_content"
            android:layout_width="match_parent"
            android:orientation="vertical"
            android:fillViewport="true">

    <LinearLayout android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:minHeight="@dimen/firstrun_min_height"
                  android:background="@color/about_page_header_grey"
                  android:gravity="center_horizontal"
                  android:orientation="vertical">

        <ImageView android:id="@+id/firstrun_image"
                   android:layout_width="wrap_content"
                   android:layout_height="@dimen/firstrun_background_height"
                   android:layout_marginTop="40dp"
                   android:layout_marginBottom="40dp"
                   android:scaleType="fitCenter"
                   android:layout_gravity="center"
                   android:adjustViewBounds="true"/>

        <TextView android:id="@+id/firstrun_text"
                  android:layout_width="@dimen/firstrun_content_width"
                  android:layout_height="wrap_content"
                  android:gravity="center"
                  android:textAppearance="@style/TextAppearance.FirstrunLight.Main"/>

        <TextView android:id="@+id/firstrun_subtext"
                  android:layout_width="@dimen/firstrun_content_width"
                  android:layout_height="wrap_content"
                  android:paddingTop="20dp"
                  android:paddingBottom="30dp"
                  android:gravity="center"
                  android:textAppearance="@style/TextAppearance.FirstrunRegular.Body"/>

        <android.support.v7.widget.SwitchCompat
                  android:id="@+id/firstrun_switch"
                  android:layout_width="wrap_content"
                  android:layout_height="0dp"
                  android:layout_weight="1"
                  android:visibility="invisible"/>

        <TextView android:id="@+id/firstrun_link"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:padding="30dp"
                  android:gravity="center"
                  android:textAppearance="@style/TextAppearance.FirstrunRegular.Link"
                  android:text="@string/firstrun_button_next"/>
    </LinearLayout>
</ScrollView>