<?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="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true" >

    <LinearLayout
        android:id="@+id/create_account_view"
        style="@style/FxAccountMiddle" >

        <LinearLayout style="@style/FxAccountSpacer" />

        <TextView
            style="@style/FxAccountHeaderItem"
            android:text="@string/fxaccount_create_account_header" />

        <include layout="@layout/fxaccount_email_password_view" />

        <TextView
            style="@style/FxAccountTextItem"
            android:layout_marginTop="10dp"
            android:text="@string/fxaccount_create_account_password_length_restriction"
            android:textColor="@color/fxaccount_textColorSubdued" />

        <!-- Per http://stackoverflow.com/questions/2359176/android-edittext-onclicklistener, not allowing focus allows us to highjack the click. -->

        <EditText
            android:id="@+id/year_edit"
            style="@style/FxAccountEditItem"
            android:drawableRight="@drawable/fxaccount_ddarrow_inactive"
            android:focusable="false"
            android:hint="@string/fxaccount_create_account_year_of_birth"
            android:inputType="none" />

        <TextView
            android:id="@+id/policy"
            style="@style/FxAccountLinkifiedItem"
            android:layout_marginBottom="0dp"
            android:layout_marginTop="10dp"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:text="@string/fxaccount_create_account_policy_text"
            android:textColorLink="@color/fxaccount_linkified_textColorLinkSubdued" />

        <TextView
            android:id="@+id/remote_error"
            style="@style/FxAccountErrorItem" />

        <RelativeLayout
            style="@style/FxAccountButtonLayout"
            android:layout_marginBottom="10dp" >

            <ProgressBar
                android:id="@+id/progress"
                style="@style/FxAccountProgress" />

            <Button
                android:id="@+id/button"
                style="@style/FxAccountButton"
                android:text="@string/fxaccount_create_account_button" />
        </RelativeLayout>

        <CheckBox
            android:id="@+id/choose_what_to_sync_checkbox"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_margin="0dp"
            android:text="@string/fxaccount_create_account_choose_what_to_sync" />

        <TextView
            android:id="@+id/sign_in_instead_link"
            style="@style/FxAccountLinkItem"
            android:layout_marginBottom="20dp"
            android:layout_marginTop="20dp"
            android:focusable="true"
            android:text="@string/fxaccount_create_account_sign_in_instead" />

        <LinearLayout style="@style/FxAccountSpacer" />

        <ImageView
            style="@style/FxAccountIcon"
            android:contentDescription="@string/fxaccount_empty_contentDescription" />
    </LinearLayout>

</ScrollView>