mobile/android/base/resources/layout/firstrun_sync_fragment.xml
author malayaleecoder <malayaleecoder@gmail.com>
Wed, 02 Mar 2016 10:32:38 +0530
changeset 336913 996d83c26f6fdca95b877de4f1226bc660dc3418
parent 324421 77a3ab6f401d698f8dbeab54924dec7fd778af7c
child 365576 5d2f52fe19c430a79c4eda921f0ade28365157c0
permissions -rw-r--r--
Bug 1241941 - [Lint: ScrollViewSize] Fix ScrollView size validation error. r=mcomella

<?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: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"
                   android:src="@drawable/firstrun_signin"/>

        <TextView android:layout_width="@dimen/firstrun_content_width"
                  android:layout_height="wrap_content"
                  android:gravity="center"
                  android:paddingBottom="40dp"
                  android:textAppearance="@style/TextAppearance.FirstrunLight.Main"
                  android:text="@string/firstrun_signin_message"/>

        <Button android:id="@+id/welcome_account"
                style="@style/Widget.Firstrun.Button"
                android:background="@drawable/button_background_action_orange_round"
                android:layout_gravity="center"
                android:text="@string/firstrun_signin_button"/>

        <View android:layout_weight="1"
              android:layout_height="0dp"
              android:layout_width="match_parent"/>

        <TextView android:id="@+id/welcome_browse"
                  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_welcome_button_browser"/>
    </LinearLayout>
</ScrollView>