3a9cb4e6ce0794bd9bfa93ec6cbb37745e0f2937
[pub/Android/ownCloud.git] / res / layout / account_setup.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:oc="http://schemas.android.com/apk/res/eu.alefzero.owncloud"
4 android:layout_width="fill_parent"
5 android:layout_height="fill_parent"
6 android:background="#F7F7F7"
7 android:focusable="true"
8 android:orientation="vertical" >
9
10 <LinearLayout
11 android:id="@+id/linearLayout7"
12 android:layout_width="fill_parent"
13 android:layout_height="wrap_content"
14 android:layout_gravity="top"
15 android:background="#1D2D44"
16 android:gravity="center_vertical|top"
17 android:orientation="vertical"
18 android:paddingBottom="2pt"
19 android:paddingTop="2pt" >
20
21 <ImageView
22 android:id="@+id/main_header_small"
23 android:layout_width="wrap_content"
24 android:layout_height="wrap_content"
25 android:layout_gravity="center|center_vertical|center_horizontal"
26 android:focusable="true"
27 android:src="@drawable/owncloud_logo_small_white" >
28 </ImageView>
29 </LinearLayout>
30
31 <LinearLayout
32 android:id="@+id/linearLayout2"
33 android:layout_width="fill_parent"
34 android:layout_height="fill_parent"
35 android:layout_gravity="center|center_vertical"
36 android:gravity="center_vertical"
37 android:orientation="vertical" >
38
39 <TableLayout
40 android:id="@+id/tableLayout1"
41 android:layout_width="fill_parent"
42 android:layout_height="wrap_content"
43 android:gravity="center_horizontal" >
44
45 <TableRow
46 android:id="@+id/tableRow1"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:gravity="center_horizontal" >
50
51 <TextView
52 android:id="@+id/textView1"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_marginBottom="15dip"
56 android:layout_marginTop="15dip"
57 android:text="@string/setup_title"
58 android:textColor="@android:color/black"
59 android:textSize="7pt"
60 android:textStyle="bold" >
61 </TextView>
62 </TableRow>
63
64 <TableRow
65 android:id="@+id/tableRow2"
66 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
68 android:gravity="center_horizontal"
69 android:weightSum="1.0" >
70
71 <eu.alefzero.owncloud.widgets.ActionEditText
72 android:id="@+id/host_URL"
73 android:layout_width="fill_parent"
74 android:layout_height="wrap_content"
75 android:layout_weight="0.75"
76 android:hint="@string/setup_hint_address"
77 android:inputType="textUri"
78 android:textColor="@android:color/black"
79 android:singleLine="true"
80 oc:optionOneString="SSL"
81 oc:optionTwoString="NO SSL"
82 oc:optionOneColor="#00ff00"
83 oc:optionTwoColor="#ff0000"
84 oc:onBadgeClick="sslBadgeClick">
85
86 <requestFocus>
87 </requestFocus>
88 </eu.alefzero.owncloud.widgets.ActionEditText>
89 </TableRow>
90
91 <TableRow
92 android:id="@+id/tableRow3"
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
95 android:gravity="center_horizontal"
96 android:weightSum="1.0" >
97
98 <EditText
99 android:id="@+id/account_username"
100 android:layout_width="fill_parent"
101 android:layout_height="wrap_content"
102 android:layout_weight=".75"
103 android:hint="@string/setup_hint_username"
104 android:singleLine="true"
105 android:textColor="@android:color/black" >
106
107 </EditText>
108 </TableRow>
109
110 <TableRow
111 android:id="@+id/tableRow4"
112 android:layout_width="fill_parent"
113 android:layout_height="wrap_content"
114 android:gravity="center_horizontal"
115 android:weightSum="1.0" >
116
117 <eu.alefzero.owncloud.widgets.ActionEditText
118 android:id="@+id/account_password"
119 android:layout_width="fill_parent"
120 android:layout_height="wrap_content"
121 android:layout_weight=".75"
122 android:hint="@string/setup_hint_password"
123 android:inputType="textPassword"
124 android:singleLine="true"
125 android:textColor="@android:color/black"
126 oc:optionOneString="Show"
127 oc:optionTwoString="Hide"
128 oc:optionOneColor="#00ff00"
129 oc:optionTwoColor="#ff0000"
130 oc:onBadgeClick="passwordBadgeClick">
131
132 </eu.alefzero.owncloud.widgets.ActionEditText>
133 </TableRow>
134 <TableRow android:id="@+id/tableRow5"
135 android:layout_width="fill_parent"
136 android:layout_height="wrap_content"
137 android:gravity="center_horizontal"
138 android:weightSum="1.0">
139
140 <CheckBox
141 android:id="@+id/show_password"
142 android:layout_width="fill_parent"
143 android:layout_height="wrap_content"
144 android:layout_weight=".75"
145 android:hint="@string/setup_hint_show_password"
146 android:textColor="@android:color/black"
147 android:onClick="onCheckboxClick"/>
148 </TableRow>
149 <TableRow android:id="@+id/tableRow6"
150 android:layout_width="fill_parent"
151 android:layout_height="wrap_content"
152 android:gravity="center_horizontal"
153 android:weightSum="1.0">
154
155 <CheckBox
156 android:id="@+id/use_ssl"
157 android:layout_width="fill_parent"
158 android:layout_height="wrap_content"
159 android:layout_weight=".75"
160 android:hint="@string/use_ssl"
161 android:textColor="@android:color/black"
162 android:onClick="onCheckboxClick"/>
163 </TableRow>
164 </TableLayout>
165
166 <LinearLayout
167 android:id="@+id/linearLayout1"
168 android:layout_width="fill_parent"
169 android:layout_height="wrap_content"
170 android:gravity="center_horizontal"
171 android:orientation="vertical"
172 android:weightSum="1.0" >
173
174 <Button
175 android:id="@+id/buttonOK"
176 android:layout_width="wrap_content"
177 android:layout_height="wrap_content"
178 android:layout_weight=".50"
179 android:onClick="onOkClick"
180 android:textColor="@android:color/black"
181 android:text="@string/setup_btn_connect" >
182 </Button>
183
184 <Button
185 android:id="@+id/buttonNotUser"
186 android:layout_width="wrap_content"
187 android:layout_height="wrap_content"
188 android:layout_weight=".50"
189 android:onClick="onNotUserClick"
190 android:textColor="@android:color/black"
191 android:text="Get started!" >
192 </Button>
193
194 </LinearLayout>
195 </LinearLayout>
196
197 </LinearLayout>