mobile/android/base/resources/layout/onboard_start_pane.xml
author Chenxia Liu <liuche@mozilla.com>
Wed, 01 Oct 2014 10:26:17 -0700
changeset 208182 611fa34ae0863337fae33b00ad4b83949b288fb9
parent 200951 7c57a2b1317b5c30ebac68cc7734bbe4c80e564f
child 212543 9e878bc102e3fe538f4bdf71bc9ca93c96627446
permissions -rw-r--r--
Bug 1074570 - Dismiss start pane on touch. r=rnewman

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


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              style="@style/OnboardStartLayout"
              android:orientation="vertical"
              android:background="@color/onboard_start"
              android:windowIsFloating="true">

    <ScrollView android:id="@+id/onboard_content"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                android:fillViewport="true" >

        <LinearLayout android:orientation="vertical"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content">

            <!-- Empty spacer view -->
            <View android:layout_width="0dp"
                  android:layout_height="0dp"
                  android:layout_weight="1"/>

            <RelativeLayout android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:paddingTop="15dp">

                <ImageView android:id="@+id/image_shield"
                           android:layout_width="wrap_content"
                           android:layout_height="wrap_content"
                           android:layout_alignParentTop="true"
                           android:layout_centerHorizontal="true"
                           android:paddingRight="92dp"
                           android:src="@drawable/onboard_start_shield"
                           android:contentDescription="@string/onboard_empty_contentDescription"/>

                <ImageView android:id="@+id/image_private"
                           android:layout_width="wrap_content"
                           android:layout_height="wrap_content"
                           android:layout_alignParentTop="true"
                           android:layout_centerHorizontal="true"
                           android:paddingLeft="92dp"
                           android:src="@drawable/onboard_start_private"
                           android:contentDescription="@string/onboard_empty_contentDescription"/>

                <ImageView android:id="@+id/image_logo"
                           android:layout_width="wrap_content"
                           android:layout_height="wrap_content"
                           android:layout_centerHorizontal="true"
                           android:layout_below="@id/image_shield"
                           android:layout_marginTop="23dp"
                           android:src="@drawable/large_icon"
                           android:contentDescription="@string/onboard_empty_contentDescription"/>

                <ImageView android:id="@+id/image_sync"
                           android:layout_width="wrap_content"
                           android:layout_height="wrap_content"
                           android:layout_below="@id/image_shield"
                           android:layout_toLeftOf="@id/image_logo"
                           android:layout_marginRight="30dp"
                           android:src="@drawable/onboard_start_sync"
                           android:contentDescription="@string/onboard_empty_contentDescription"/>

                <ImageView android:id="@+id/image_addon"
                           android:layout_width="wrap_content"
                           android:layout_height="wrap_content"
                           android:layout_below="@id/image_private"
                           android:layout_toRightOf="@id/image_logo"
                           android:layout_marginLeft="30dp"
                           android:src="@drawable/onboard_start_addon"
                           android:contentDescription="@string/onboard_empty_contentDescription"/>

                <TextView android:id="@+id/text_message"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_below="@id/image_logo"
                          android:layout_centerHorizontal="true"
                          android:layout_marginTop="30dp"
                          android:padding="10sp"
                          android:text="@string/onboard_start_message"
                          android:textAppearance="@style/OnboardStartTextAppearance"
                          android:textSize="23sp" />

                <TextView android:layout_width="295dp"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center"
                          android:gravity="center"
                          android:layout_below="@id/text_message"
                          android:layout_centerHorizontal="true"
                          android:lineSpacingExtra="12sp"
                          android:padding="10sp"
                          android:text="@string/onboard_start_subtext"
                          android:textAppearance="@style/OnboardStartTextAppearance.Subtext" />

            </RelativeLayout>

            <!-- Empty spacer view -->
            <View android:layout_width="0dp"
                  android:layout_height="0dp"
                  android:layout_weight="1"/>

        </LinearLayout>
    </ScrollView>

    <!-- Bottom row of navigation buttons. -->
    <LinearLayout android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal"
                  android:background="@color/android:white">

        <Button android:id="@+id/button_account"
                style="@style/Widget.Onboard.Start.Button"
                android:layout_marginTop="3px"
                android:layout_marginRight="3px"
                android:text="@string/onboard_start_button_account"/>

        <Button android:id="@+id/button_browser"
                style="@style/Widget.Onboard.Start.Button"
                android:layout_marginTop="3px"
                android:text="@string/onboard_start_button_browser"/>

    </LinearLayout>
</LinearLayout>