OSDN Git Service

Initial commit
[worldopac/WorldOpac.git] / WorldOpac / res / layout / fragment_account.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     android:layout_width="match_parent"
4     android:layout_height="wrap_content" >
5
6     <LinearLayout
7         android:id="@+id/llLoading"
8         android:layout_width="match_parent"
9         android:layout_height="match_parent"
10         android:gravity="center"
11         android:orientation="vertical"
12         android:visibility="gone" >
13
14         <org.holoeverywhere.widget.ProgressBar
15             android:id="@+id/progressBar1"
16             style="?android:attr/progressBarStyleLarge"
17             android:layout_width="wrap_content"
18             android:layout_height="wrap_content" />
19     </LinearLayout>
20
21     <ScrollView
22         android:id="@+id/svAccount"
23         android:layout_width="match_parent"
24         android:layout_height="wrap_content" >
25
26         <RelativeLayout
27             android:id="@+id/rlAccView"
28             android:layout_width="match_parent"
29             android:layout_height="wrap_content"
30             android:orientation="vertical" >
31
32             <RelativeLayout
33                 android:id="@+id/rlAccHeader"
34                 android:layout_width="match_parent"
35                 android:layout_height="wrap_content"
36                 android:layout_alignParentLeft="false"
37                 android:layout_alignParentTop="true"
38                 android:background="@color/account_head_bg"
39                 android:orientation="vertical"
40                 android:padding="8dp" >
41
42                 <TextView
43                     android:id="@+id/tvAccLabel"
44                     android:layout_width="fill_parent"
45                     android:layout_height="wrap_content"
46                     android:layout_alignParentLeft="true"
47                     android:layout_alignParentTop="true"
48                     android:ellipsize="end"
49                     android:textAppearance="?android:attr/textAppearanceMedium"
50                     android:textColor="@color/account_head_fg" />
51
52                 <TextView
53                     android:id="@+id/tvAccCity"
54                     android:layout_width="fill_parent"
55                     android:layout_height="wrap_content"
56                     android:layout_alignParentLeft="false"
57                     android:layout_below="@id/tvAccLabel"
58                     android:layout_marginBottom="4dp"
59                     android:textColor="@color/account_head_fg" />
60
61                 <TextView
62                     android:id="@+id/tvAccUser"
63                     android:layout_width="fill_parent"
64                     android:layout_height="wrap_content"
65                     android:layout_alignParentLeft="true"
66                     android:layout_below="@id/tvAccCity"
67                     android:layout_marginBottom="4dp"
68                     android:textColor="@color/account_head_fg"
69                     android:textIsSelectable="true" />
70
71                 <TextView
72                     android:id="@+id/tvPendingFeesLabel"
73                     android:layout_width="wrap_content"
74                     android:layout_height="wrap_content"
75                     android:layout_alignParentLeft="true"
76                     android:layout_below="@id/tvAccUser"
77                     android:layout_marginBottom="4dp"
78                     android:text="@string/pending_fees"
79                     android:textColor="@color/account_head_fg" />
80
81                 <TextView
82                     android:id="@+id/tvPendingFees"
83                     android:layout_width="wrap_content"
84                     android:layout_height="wrap_content"
85                     android:layout_alignParentRight="true"
86                     android:layout_below="@id/tvAccUser"
87                     android:layout_marginBottom="4dp"
88                     android:textColor="@color/account_head_fg"
89                     android:textIsSelectable="true" />
90
91                 <TextView
92                     android:id="@+id/tvValidUntilLabel"
93                     android:layout_width="wrap_content"
94                     android:layout_height="wrap_content"
95                     android:layout_alignParentLeft="true"
96                     android:layout_below="@id/tvPendingFeesLabel"
97                     android:layout_marginBottom="4dp"
98                     android:text="@string/valid_until"
99                     android:textColor="@color/account_head_fg" />
100
101                 <TextView
102                     android:id="@+id/tvValidUntil"
103                     android:layout_width="wrap_content"
104                     android:layout_height="wrap_content"
105                     android:layout_alignParentRight="true"
106                     android:layout_below="@id/tvPendingFees"
107                     android:layout_marginBottom="4dp"
108                     android:textColor="@color/account_head_fg"
109                     android:textIsSelectable="true" />
110             </RelativeLayout>
111
112             <TextView
113                 android:id="@+id/tvError"
114                 android:layout_width="match_parent"
115                 android:layout_height="wrap_content"
116                 android:layout_below="@id/rlAccHeader"
117                 android:background="@color/error_bg"
118                 android:gravity="center"
119                 android:padding="5dp"
120                 android:textColor="@color/error_fg"
121                 android:textStyle="bold"
122                 android:visibility="gone" />
123
124             <TextView
125                 android:id="@+id/tvWarning"
126                 android:layout_width="match_parent"
127                 android:layout_height="wrap_content"
128                 android:layout_below="@id/tvError"
129                 android:background="@color/warning"
130                 android:gravity="center"
131                 android:padding="5dp"
132                 android:textColor="@color/warning_fg"
133                 android:textStyle="bold"
134                 android:visibility="gone" />
135
136             <RelativeLayout
137                 android:layout_width="match_parent"
138                 android:layout_height="wrap_content"
139                 android:layout_below="@id/tvWarning"
140                 android:orientation="vertical"
141                 android:padding="5dp" >
142
143                 <TextView
144                     android:id="@+id/tvEntlHeader"
145                     android:layout_width="fill_parent"
146                     android:layout_height="wrap_content"
147                     android:layout_marginBottom="10dp"
148                     android:layout_marginTop="8dp"
149                     android:drawableBottom="@drawable/section_header"
150                     android:drawablePadding="4dp"
151                     android:paddingLeft="4dp"
152                     android:text="@string/entl_head"
153                     android:textAllCaps="true"
154                     android:textColor="@color/emphasis"
155                     android:textSize="14sp" />
156
157                 <LinearLayout
158                     android:id="@+id/llLent"
159                     android:layout_width="match_parent"
160                     android:layout_height="wrap_content"
161                     android:layout_below="@id/tvEntlHeader"
162                     android:orientation="vertical" >
163                 </LinearLayout>
164
165                 <TextView
166                     android:id="@+id/tvResHeader"
167                     android:layout_width="fill_parent"
168                     android:layout_height="wrap_content"
169                     android:layout_below="@id/llLent"
170                     android:layout_marginBottom="10dp"
171                     android:layout_marginTop="8dp"
172                     android:drawableBottom="@drawable/section_header"
173                     android:drawablePadding="4dp"
174                     android:paddingLeft="4dp"
175                     android:text="@string/reservations_head"
176                     android:textAllCaps="true"
177                     android:textColor="@color/emphasis"
178                     android:textSize="14sp" />
179
180                 <LinearLayout
181                     android:id="@+id/llReservations"
182                     android:layout_width="match_parent"
183                     android:layout_height="wrap_content"
184                     android:layout_below="@id/tvResHeader"
185                     android:orientation="vertical" >
186                 </LinearLayout>
187
188                 <TextView
189                     android:id="@+id/tvAge"
190                     android:layout_width="fill_parent"
191                     android:layout_height="wrap_content"
192                     android:layout_below="@id/llReservations"
193                     android:layout_marginTop="4dp"
194                     android:gravity="center|top"
195                     android:textColor="@color/account_age"
196                     android:textStyle="italic" />
197
198                 <TextView
199                     android:id="@+id/tvNoWarranty"
200                     android:layout_width="fill_parent"
201                     android:layout_height="wrap_content"
202                     android:layout_below="@id/tvAge"
203                     android:layout_marginTop="4dp"
204                     android:gravity="center|top"
205                     android:text="@string/no_warranty"
206                     android:textColor="@color/account_age"
207                     android:textStyle="italic" />
208             </RelativeLayout>
209         </RelativeLayout>
210     </ScrollView>
211     
212     <LinearLayout
213         android:id="@+id/unsupported_error"
214             android:layout_width="match_parent"
215             android:layout_height="match_parent"
216             android:gravity="center"
217             android:orientation="vertical"
218             android:padding="16dp" 
219             android:visibility="gone" >
220         
221             <TextView
222                 android:id="@+id/tvErrHeadU"
223                 android:layout_width="wrap_content"
224                 android:layout_height="wrap_content"
225                 android:text="@string/unsupported"
226                 android:textAppearance="?android:attr/textAppearanceLarge" />
227         
228             <TextView
229                 android:id="@+id/tvErrBodyU"
230                 android:layout_width="wrap_content"
231                 android:layout_height="wrap_content"
232                 android:gravity="center"
233                 android:padding="10dp"
234                 android:text="@string/account_unsupported" />
235         
236             <Button
237                 android:id="@+id/btSend"
238                 android:layout_width="wrap_content"
239                 android:layout_height="wrap_content"
240                 android:text="@string/report" />
241         
242         </LinearLayout>
243         
244     <LinearLayout
245         android:id="@+id/answer_error"
246             android:layout_width="match_parent"
247             android:layout_height="match_parent"
248             android:gravity="center"
249             android:padding="16dp"
250             android:orientation="vertical"
251                 android:visibility="gone">
252         
253             <TextView
254                 android:id="@+id/tvErrHeadA"
255                 android:layout_width="wrap_content"
256                 android:layout_height="wrap_content"
257                 android:text="@string/opac_error"
258                 android:textAppearance="?android:attr/textAppearanceLarge" />
259         
260             <TextView
261                 android:id="@+id/tvErrBodyA"
262                 android:layout_width="wrap_content"
263                 android:layout_height="wrap_content"
264                 android:gravity="center"
265                 android:padding="10dp"
266                 android:text="@string/connection_error_detail" />
267         
268             <Button
269                 android:id="@+id/btPrefs"
270                 android:layout_width="wrap_content"
271                 android:layout_height="wrap_content"
272                 android:text="@string/accounts_edit" />
273         
274         </LinearLayout>
275         
276     <FrameLayout
277         android:id="@+id/error_view"
278         android:layout_width="match_parent"
279         android:layout_height="match_parent" />
280
281 </RelativeLayout>