mobile/android/app/src/main/res/layout/restricted_firstrun_welcome_fragment.xml
author jwu <jwu@mozilla.com>
Sat, 17 Jun 2017 01:17:28 +0800
changeset 364536 3649a9346e36428e6d04bfcd99ed0e2c514f7632
parent 277632 mobile/android/base/resources/layout/restricted_firstrun_welcome_fragment.xml@50650c9b9c482fe2b365c18fcbc42649bae1c8e9
permissions -rw-r--r--
Bug 1372486 - Part 1: Move Fennec resources from base/resources to app/src/main/res. r=nalexander,nechen,walkingice The hg command is: `hg mv mobile/android/base/resources app/src/main/res` MozReview-Commit-ID: GlfNB4Ohre4

<?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>