83238eb6c3cc7e875d629be93b32c086172add96
[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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:layout_gravity="center"
24 android:fillViewport="true"
25 android:orientation="vertical" >
26
27 <LinearLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:focusable="true"
31 android:gravity="center"
32 android:orientation="vertical"
33 android:padding="8dp" >
34
35 <ImageView
36 android:id="@+id/imageView1"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:layout_marginBottom="10dp"
40 android:layout_marginTop="10dp"
41 android:src="@drawable/logo" />
42
43 <EditText
44 android:id="@+id/hostUrlInput"
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 android:ems="10"
48 android:hint="@string/auth_host_url"
49 android:inputType="textUri"
50 android:drawablePadding="5dp"
51 >
52 <requestFocus />
53 </EditText>
54
55 <TextView
56 android:id="@+id/server_status_text"
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:layout_marginBottom="10dp"
60 android:drawableLeft="@android:drawable/stat_notify_sync"
61 android:drawablePadding="5dp"
62 android:gravity="center_vertical"
63 android:text="@string/auth_testing_connection" />
64
65 <CheckBox
66 android:id="@+id/oauth_onOff_check"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:checked="false"
70 android:onClick="onCheckClick"
71 android:text="@string/oauth_check_onoff"
72 android:textAppearance="?android:attr/textAppearanceSmall"
73 android:visibility="gone" />
74
75 <EditText
76 android:id="@+id/oAuthEntryPoint_1"
77 android:layout_width="match_parent"
78 android:layout_height="wrap_content"
79 android:ems="10"
80 android:inputType="textUri"
81 android:singleLine="true"
82 android:text="@string/oauth2_url_endpoint_auth"
83 android:visibility="gone" >
84 </EditText>
85
86 <EditText
87 android:id="@+id/oAuthEntryPoint_2"
88 android:layout_width="match_parent"
89 android:layout_height="wrap_content"
90 android:ems="10"
91 android:inputType="textUri"
92 android:singleLine="true"
93 android:text="@string/oauth2_url_endpoint_access"
94 android:visibility="gone" />
95
96 <EditText
97 android:id="@+id/account_username"
98 android:layout_width="match_parent"
99 android:layout_height="wrap_content"
100 android:ems="10"
101 android:hint="@string/auth_username"
102 android:inputType="textNoSuggestions" />
103
104 <FrameLayout
105 android:layout_width="match_parent"
106 android:layout_height="wrap_content" >
107
108 <EditText
109 android:id="@+id/account_password"
110 android:layout_width="match_parent"
111 android:layout_height="wrap_content"
112 android:ems="10"
113 android:hint="@string/auth_password"
114 android:inputType="textPassword" />
115
116 <ImageView
117 android:id="@+id/viewPasswordButton"
118 android:layout_width="wrap_content"
119 android:layout_height="wrap_content"
120 android:layout_gravity="right|center_vertical"
121 android:onClick="onViewPasswordClick"
122 android:src="@android:drawable/ic_menu_view"
123 android:visibility="invisible" />
124 </FrameLayout>
125
126 <TextView
127 android:id="@+id/auth_status_text"
128 android:layout_width="match_parent"
129 android:layout_height="wrap_content"
130 android:layout_marginBottom="10dp"
131 android:drawableLeft="@android:drawable/stat_notify_sync"
132 android:drawablePadding="5dp"
133 android:gravity="center_vertical"
134 android:text="@string/auth_unauthorized" />
135
136 <Button
137 android:id="@+id/buttonOK"
138 android:layout_width="match_parent"
139 android:layout_height="wrap_content"
140 android:layout_gravity="center_horizontal"
141 android:enabled="false"
142 android:onClick="onOkClick"
143 android:text="@string/setup_btn_connect"
144 android:textColor="@android:color/black" />
145
146 <Button
147 android:id="@+id/account_register"
148 android:layout_width="wrap_content"
149 android:layout_height="wrap_content"
150 android:background="@android:color/transparent"
151 android:textColor="#0000FF"
152 android:onClick="onRegisterClick"
153 android:paddingBottom="5dp"
154 android:paddingTop="5dp"
155 android:text="@string/auth_register"
156 />
157 </LinearLayout>
158
159 </ScrollView>