[tx-robot] updated from transifex
[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 <EditText
105 android:id="@+id/account_password"
106 android:layout_width="match_parent"
107 android:layout_height="wrap_content"
108 android:drawablePadding="5dp"
109 android:ems="10"
110 android:hint="@string/auth_password"
111 android:inputType="textPassword" />
112
113 <TextView
114 android:id="@+id/auth_status_text"
115 android:layout_width="match_parent"
116 android:layout_height="wrap_content"
117 android:layout_marginBottom="10dp"
118 android:drawableLeft="@android:drawable/stat_notify_sync"
119 android:drawablePadding="5dp"
120 android:gravity="center_vertical"
121 android:text="@string/auth_unauthorized" />
122
123 <Button
124 android:id="@+id/buttonOK"
125 android:layout_width="match_parent"
126 android:layout_height="wrap_content"
127 android:layout_gravity="center_horizontal"
128 android:enabled="false"
129 android:onClick="onOkClick"
130 android:text="@string/setup_btn_connect"
131 />
132
133 <Button
134 android:id="@+id/account_register"
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 android:background="@android:color/transparent"
138 android:textColor="#0000FF"
139 android:onClick="onRegisterClick"
140 android:paddingBottom="5dp"
141 android:paddingTop="5dp"
142 android:text="@string/auth_register"
143 />
144 </LinearLayout>
145
146 </ScrollView>