65237a8b2b54ced6dcfab4d75121d7902ac6659f
[pub/Android/ownCloud.git] / res / layout / account_setup.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012 Bartek Przybylski
6 Copyright (C) 2012-2013 ownCloud Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2,
10 as published by the Free Software Foundation.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 -->
20
21 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
24 android:layout_gravity="center"
25 android:padding="8dip"
26 android:fillViewport="true"
27 android:orientation="vertical"
28 >
29
30 <LinearLayout
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:layout_margin="8dip"
34 android:gravity="center"
35 android:orientation="vertical"
36 android:focusable="true"
37 >
38
39 <ImageView
40 android:id="@+id/imageView1"
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:layout_marginBottom="10dp"
44 android:layout_marginTop="10dp"
45 android:src="@drawable/logo" />
46
47 <EditText
48 android:id="@+id/hostUrlInput"
49 android:layout_width="match_parent"
50 android:layout_height="wrap_content"
51 android:ems="10"
52 android:hint="@string/auth_host_url"
53 android:inputType="textUri"
54 android:drawablePadding="5dp"
55 >
56 <requestFocus />
57 </EditText>
58
59 <TextView
60 android:id="@+id/server_status_text"
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
63 android:layout_marginBottom="10dp"
64 android:drawableLeft="@android:drawable/stat_notify_sync"
65 android:drawablePadding="5dp"
66 android:gravity="center_vertical"
67 android:text="@string/auth_testing_connection" />
68
69 <CheckBox
70 android:id="@+id/oauth_onOff_check"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:checked="false"
74 android:onClick="onCheckClick"
75 android:text="@string/oauth_check_onoff"
76 android:textAppearance="?android:attr/textAppearanceSmall"
77 android:visibility="gone" />
78
79 <EditText
80 android:id="@+id/oAuthEntryPoint_1"
81 android:layout_width="match_parent"
82 android:layout_height="wrap_content"
83 android:ems="10"
84 android:inputType="textUri"
85 android:singleLine="true"
86 android:text="@string/oauth2_url_endpoint_auth"
87 android:visibility="gone" >
88 </EditText>
89
90 <EditText
91 android:id="@+id/oAuthEntryPoint_2"
92 android:layout_width="match_parent"
93 android:layout_height="wrap_content"
94 android:ems="10"
95 android:inputType="textUri"
96 android:singleLine="true"
97 android:text="@string/oauth2_url_endpoint_access"
98 android:visibility="gone" />
99
100 <EditText
101 android:id="@+id/account_username"
102 android:layout_width="match_parent"
103 android:layout_height="wrap_content"
104 android:ems="10"
105 android:hint="@string/auth_username"
106 android:inputType="textNoSuggestions" />
107
108 <FrameLayout
109 android:layout_width="match_parent"
110 android:layout_height="wrap_content" >
111
112 <EditText
113 android:id="@+id/account_password"
114 android:layout_width="match_parent"
115 android:layout_height="wrap_content"
116 android:ems="10"
117 android:hint="@string/auth_password"
118 android:inputType="textPassword" />
119
120 <ImageView
121 android:id="@+id/viewPasswordButton"
122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content"
124 android:layout_gravity="right|center_vertical"
125 android:onClick="onViewPasswordClick"
126 android:src="@android:drawable/ic_menu_view"
127 android:visibility="invisible" />
128 </FrameLayout>
129
130 <TextView
131 android:id="@+id/auth_status_text"
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:layout_marginBottom="10dp"
135 android:drawableLeft="@android:drawable/stat_notify_sync"
136 android:drawablePadding="5dp"
137 android:gravity="center_vertical"
138 android:text="@string/auth_unauthorized" />
139
140 <Button
141 android:id="@+id/buttonOK"
142 android:layout_width="match_parent"
143 android:layout_height="wrap_content"
144 android:layout_gravity="center_horizontal"
145 android:enabled="false"
146 android:onClick="onOkClick"
147 android:text="@string/setup_btn_connect"
148 android:textColor="@android:color/black" />
149
150 <Button
151 android:id="@+id/account_register"
152 android:layout_width="wrap_content"
153 android:layout_height="wrap_content"
154 android:background="@android:color/transparent"
155 android:textColor="#0000FF"
156 android:onClick="onRegisterClick"
157 android:paddingBottom="5dp"
158 android:paddingTop="5dp"
159 android:text="@string/auth_register"
160 />
161 </LinearLayout>
162
163 </ScrollView>