1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/base/resources/layout/fxaccount_create_account.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,92 @@ 1.4 +<?xml version="1.0" encoding="utf-8"?> 1.5 +<!-- 1.6 + This Source Code Form is subject to the terms of the Mozilla Public 1.7 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 +--> 1.10 + 1.11 +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 1.12 + android:layout_width="fill_parent" 1.13 + android:layout_height="fill_parent" 1.14 + android:fillViewport="true" > 1.15 + 1.16 + <LinearLayout 1.17 + android:id="@+id/create_account_view" 1.18 + style="@style/FxAccountMiddle" > 1.19 + 1.20 + <LinearLayout style="@style/FxAccountSpacer" /> 1.21 + 1.22 + <TextView 1.23 + style="@style/FxAccountHeaderItem" 1.24 + android:text="@string/fxaccount_create_account_header" /> 1.25 + 1.26 + <include layout="@layout/fxaccount_email_password_view" /> 1.27 + 1.28 + <TextView 1.29 + style="@style/FxAccountTextItem" 1.30 + android:layout_marginTop="10dp" 1.31 + android:text="@string/fxaccount_create_account_password_length_restriction" 1.32 + android:textColor="@color/fxaccount_textColorSubdued" /> 1.33 + 1.34 + <!-- Per http://stackoverflow.com/questions/2359176/android-edittext-onclicklistener, not allowing focus allows us to highjack the click. --> 1.35 + 1.36 + <EditText 1.37 + android:id="@+id/year_edit" 1.38 + style="@style/FxAccountEditItem" 1.39 + android:drawableRight="@drawable/fxaccount_ddarrow_inactive" 1.40 + android:focusable="false" 1.41 + android:hint="@string/fxaccount_create_account_year_of_birth" 1.42 + android:inputType="none" /> 1.43 + 1.44 + <TextView 1.45 + android:id="@+id/policy" 1.46 + style="@style/FxAccountLinkifiedItem" 1.47 + android:layout_marginBottom="0dp" 1.48 + android:layout_marginTop="10dp" 1.49 + android:layout_marginLeft="10dp" 1.50 + android:layout_marginRight="10dp" 1.51 + android:text="@string/fxaccount_create_account_policy_text" 1.52 + android:textColorLink="@color/fxaccount_linkified_textColorLinkSubdued" /> 1.53 + 1.54 + <TextView 1.55 + android:id="@+id/remote_error" 1.56 + style="@style/FxAccountErrorItem" /> 1.57 + 1.58 + <RelativeLayout 1.59 + style="@style/FxAccountButtonLayout" 1.60 + android:layout_marginBottom="10dp" > 1.61 + 1.62 + <ProgressBar 1.63 + android:id="@+id/progress" 1.64 + style="@style/FxAccountProgress" /> 1.65 + 1.66 + <Button 1.67 + android:id="@+id/button" 1.68 + style="@style/FxAccountButton" 1.69 + android:text="@string/fxaccount_create_account_button" /> 1.70 + </RelativeLayout> 1.71 + 1.72 + <CheckBox 1.73 + android:id="@+id/choose_what_to_sync_checkbox" 1.74 + android:layout_width="wrap_content" 1.75 + android:layout_height="wrap_content" 1.76 + android:layout_gravity="center_horizontal" 1.77 + android:layout_margin="0dp" 1.78 + android:text="@string/fxaccount_create_account_choose_what_to_sync" /> 1.79 + 1.80 + <TextView 1.81 + android:id="@+id/sign_in_instead_link" 1.82 + style="@style/FxAccountLinkItem" 1.83 + android:layout_marginBottom="20dp" 1.84 + android:layout_marginTop="20dp" 1.85 + android:focusable="true" 1.86 + android:text="@string/fxaccount_create_account_sign_in_instead" /> 1.87 + 1.88 + <LinearLayout style="@style/FxAccountSpacer" /> 1.89 + 1.90 + <ImageView 1.91 + style="@style/FxAccountIcon" 1.92 + android:contentDescription="@string/fxaccount_empty_contentDescription" /> 1.93 + </LinearLayout> 1.94 + 1.95 +</ScrollView> 1.96 \ No newline at end of file