Variable nameing / imports improved, fixed nullpointer on account
[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 </TableLayout>
135
136 <LinearLayout
137 android:id="@+id/linearLayout1"
138 android:layout_width="fill_parent"
139 android:layout_height="wrap_content"
140 android:gravity="center_horizontal"
141 android:orientation="vertical"
142 android:weightSum="1.0" >
143
144 <Button
145 android:id="@+id/buttonOK"
146 android:layout_width="fill_parent"
147 android:layout_height="wrap_content"
148 android:layout_weight=".75"
149 android:onClick="onOkClick"
150 android:textColor="@android:color/black"
151 android:text="@string/setup_btn_connect" >
152 </Button>
153 <!--
154 <Button
155 android:id="@+id/buttonNotUser"
156 android:layout_width="fill_parent"
157 android:layout_height="wrap_content"
158 android:layout_weight=".75"
159 android:onClick="onNotUserClick"
160 android:textColor="@android:color/black"
161 android:text="Get started!" >
162 </Button>
163 -->
164 </LinearLayout>
165 </LinearLayout>
166
167 </LinearLayout>