|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
3 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
5 |
|
6 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
7 style="@style/SyncContainer" > |
|
8 |
|
9 <TextView |
|
10 style="@style/SyncTop" |
|
11 android:text="@string/sync_title_connect" /> |
|
12 |
|
13 <ScrollView |
|
14 style="@style/SyncMiddle" > |
|
15 |
|
16 <LinearLayout |
|
17 style="@style/SyncLayout.Vertical" > |
|
18 |
|
19 <TextView |
|
20 style="@style/SyncTextItem" |
|
21 android:text="@string/sync_subtitle_account" |
|
22 android:paddingBottom="@dimen/SyncSpace" /> |
|
23 |
|
24 <EditText android:id="@+id/usernameInput" |
|
25 style="@style/SyncEditItem" |
|
26 android:state_focused="true" |
|
27 android:hint="@string/sync_input_username" /> |
|
28 |
|
29 <EditText android:id="@+id/passwordInput" |
|
30 style="@style/SyncEditItem" |
|
31 android:inputType="textPassword" |
|
32 android:hint="@string/sync_input_password" /> |
|
33 |
|
34 <EditText android:id="@+id/keyInput" |
|
35 style="@style/SyncEditItem" |
|
36 android:hint="@string/sync_input_key" /> |
|
37 |
|
38 <TextView android:id="@+id/cred_error" |
|
39 style="@style/SyncTextError" |
|
40 android:text="@string/sync_invalidcreds_label" /> |
|
41 |
|
42 <CheckBox android:id="@+id/checkbox_server" |
|
43 android:layout_width="wrap_content" |
|
44 android:layout_height="wrap_content" |
|
45 android:layout_gravity="left" |
|
46 android:text="@string/sync_checkbox_server" /> |
|
47 |
|
48 <EditText android:id="@+id/serverInput" |
|
49 style="@style/SyncEditItem" |
|
50 android:visibility="gone" |
|
51 android:hint="@string/sync_input_server" /> |
|
52 |
|
53 <TextView android:id="@+id/server_error" |
|
54 style="@style/SyncTextError" |
|
55 android:text="@string/sync_invalidserver_label" /> |
|
56 |
|
57 </LinearLayout> |
|
58 </ScrollView> |
|
59 |
|
60 <LinearLayout |
|
61 style="@style/SyncBottomContainer" > |
|
62 |
|
63 <LinearLayout |
|
64 style="@style/SyncBottom" > |
|
65 <Button |
|
66 android:id="@+id/accountCancelButton" |
|
67 style="@style/SyncButton" |
|
68 android:onClick="cancelClickHandler" |
|
69 android:text="@string/sync_button_cancel" /> |
|
70 |
|
71 <Button |
|
72 style="@style/SyncButton" |
|
73 android:id="@+id/accountConnectButton" |
|
74 android:onClick="connectClickHandler" |
|
75 android:clickable="false" |
|
76 android:enabled="false" |
|
77 android:text="@string/sync_button_connect" /> |
|
78 </LinearLayout> |
|
79 |
|
80 </LinearLayout> |
|
81 </LinearLayout> |