OC-577: Modify FileDataStorageManager to call updateSubtreeSize. OC-523
[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 <FrameLayout
44 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
46 >
47 <EditText
48 android:id="@+id/hostUrlInput"
49 android:layout_width="match_parent"
50 android:layout_height="wrap_content"
51 android:hint="@string/auth_host_url"
52 android:inputType="textUri"
53 android:drawablePadding="5dp"
54 android:paddingRight="55dp"
55 >
56 <requestFocus />
57 </EditText>
58 <ImageButton
59 android:id="@+id/refeshButton"
60 android:layout_width="48dp"
61 android:layout_height="48dp"
62 android:layout_gravity="center_vertical|right"
63 android:layout_marginRight="5dp"
64 android:padding="0dp"
65 android:scaleType="fitCenter"
66 android:src="@drawable/ic_action_refresh_black"
67 android:onClick="onRefreshClick"
68 android:visibility="gone"
69 android:background="@android:color/transparent"
70 />
71 </FrameLayout>
72
73 <TextView
74 android:id="@+id/server_status_text"
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:layout_marginBottom="10dp"
78 android:drawableLeft="@android:drawable/stat_notify_sync"
79 android:drawablePadding="5dp"
80 android:gravity="center_vertical"
81 android:text="@string/auth_testing_connection" />
82
83 <CheckBox
84 android:id="@+id/oauth_onOff_check"
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:checked="false"
88 android:onClick="onCheckClick"
89 android:text="@string/oauth_check_onoff"
90 android:textAppearance="?android:attr/textAppearanceSmall"
91 android:visibility="gone" />
92
93 <EditText
94 android:id="@+id/oAuthEntryPoint_1"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
97 android:ems="10"
98 android:inputType="textUri"
99 android:singleLine="true"
100 android:text="@string/oauth2_url_endpoint_auth"
101 android:visibility="gone" >
102 </EditText>
103
104 <EditText
105 android:id="@+id/oAuthEntryPoint_2"
106 android:layout_width="match_parent"
107 android:layout_height="wrap_content"
108 android:ems="10"
109 android:inputType="textUri"
110 android:singleLine="true"
111 android:text="@string/oauth2_url_endpoint_access"
112 android:visibility="gone" />
113
114 <EditText
115 android:id="@+id/account_username"
116 android:layout_width="match_parent"
117 android:layout_height="wrap_content"
118 android:ems="10"
119 android:hint="@string/auth_username"
120 android:inputType="textNoSuggestions" />
121
122 <EditText
123 android:id="@+id/account_password"
124 android:layout_width="match_parent"
125 android:layout_height="wrap_content"
126 android:drawablePadding="5dp"
127 android:ems="10"
128 android:hint="@string/auth_password"
129 android:inputType="textPassword" />
130
131 <TextView
132 android:id="@+id/auth_status_text"
133 android:layout_width="match_parent"
134 android:layout_height="wrap_content"
135 android:layout_marginBottom="10dp"
136 android:drawableLeft="@android:drawable/stat_notify_sync"
137 android:drawablePadding="5dp"
138 android:gravity="center_vertical"
139 android:text="@string/auth_unauthorized" />
140
141 <Button
142 android:id="@+id/buttonOK"
143 android:layout_width="match_parent"
144 android:layout_height="wrap_content"
145 android:layout_gravity="center_horizontal"
146 android:enabled="false"
147 android:onClick="onOkClick"
148 android:text="@string/setup_btn_connect"
149 />
150
151 <Button
152 android:id="@+id/account_register"
153 android:layout_width="wrap_content"
154 android:layout_height="wrap_content"
155 android:background="@android:color/transparent"
156 android:textColor="#0000FF"
157 android:onClick="onRegisterClick"
158 android:paddingBottom="5dp"
159 android:paddingTop="5dp"
160 android:text="@string/auth_register"
161 />
162 </LinearLayout>
163
164 </ScrollView>