|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- |
|
3 This Source Code Form is subject to the terms of the Mozilla Public |
|
4 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
6 --> |
|
7 |
|
8 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
|
9 android:layout_width="fill_parent" |
|
10 android:layout_height="fill_parent" |
|
11 android:fillViewport="true" > |
|
12 |
|
13 <LinearLayout |
|
14 android:id="@+id/create_account_view" |
|
15 style="@style/FxAccountMiddle" > |
|
16 |
|
17 <LinearLayout style="@style/FxAccountSpacer" /> |
|
18 |
|
19 <TextView |
|
20 style="@style/FxAccountHeaderItem" |
|
21 android:text="@string/fxaccount_create_account_header" /> |
|
22 |
|
23 <include layout="@layout/fxaccount_email_password_view" /> |
|
24 |
|
25 <TextView |
|
26 style="@style/FxAccountTextItem" |
|
27 android:layout_marginTop="10dp" |
|
28 android:text="@string/fxaccount_create_account_password_length_restriction" |
|
29 android:textColor="@color/fxaccount_textColorSubdued" /> |
|
30 |
|
31 <!-- Per http://stackoverflow.com/questions/2359176/android-edittext-onclicklistener, not allowing focus allows us to highjack the click. --> |
|
32 |
|
33 <EditText |
|
34 android:id="@+id/year_edit" |
|
35 style="@style/FxAccountEditItem" |
|
36 android:drawableRight="@drawable/fxaccount_ddarrow_inactive" |
|
37 android:focusable="false" |
|
38 android:hint="@string/fxaccount_create_account_year_of_birth" |
|
39 android:inputType="none" /> |
|
40 |
|
41 <TextView |
|
42 android:id="@+id/policy" |
|
43 style="@style/FxAccountLinkifiedItem" |
|
44 android:layout_marginBottom="0dp" |
|
45 android:layout_marginTop="10dp" |
|
46 android:layout_marginLeft="10dp" |
|
47 android:layout_marginRight="10dp" |
|
48 android:text="@string/fxaccount_create_account_policy_text" |
|
49 android:textColorLink="@color/fxaccount_linkified_textColorLinkSubdued" /> |
|
50 |
|
51 <TextView |
|
52 android:id="@+id/remote_error" |
|
53 style="@style/FxAccountErrorItem" /> |
|
54 |
|
55 <RelativeLayout |
|
56 style="@style/FxAccountButtonLayout" |
|
57 android:layout_marginBottom="10dp" > |
|
58 |
|
59 <ProgressBar |
|
60 android:id="@+id/progress" |
|
61 style="@style/FxAccountProgress" /> |
|
62 |
|
63 <Button |
|
64 android:id="@+id/button" |
|
65 style="@style/FxAccountButton" |
|
66 android:text="@string/fxaccount_create_account_button" /> |
|
67 </RelativeLayout> |
|
68 |
|
69 <CheckBox |
|
70 android:id="@+id/choose_what_to_sync_checkbox" |
|
71 android:layout_width="wrap_content" |
|
72 android:layout_height="wrap_content" |
|
73 android:layout_gravity="center_horizontal" |
|
74 android:layout_margin="0dp" |
|
75 android:text="@string/fxaccount_create_account_choose_what_to_sync" /> |
|
76 |
|
77 <TextView |
|
78 android:id="@+id/sign_in_instead_link" |
|
79 style="@style/FxAccountLinkItem" |
|
80 android:layout_marginBottom="20dp" |
|
81 android:layout_marginTop="20dp" |
|
82 android:focusable="true" |
|
83 android:text="@string/fxaccount_create_account_sign_in_instead" /> |
|
84 |
|
85 <LinearLayout style="@style/FxAccountSpacer" /> |
|
86 |
|
87 <ImageView |
|
88 style="@style/FxAccountIcon" |
|
89 android:contentDescription="@string/fxaccount_empty_contentDescription" /> |
|
90 </LinearLayout> |
|
91 |
|
92 </ScrollView> |