Merge pull request #152 from owncloud/oauth_login
[pub/Android/ownCloud.git] / res / layout / file_details_fragment.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:id="@+id/fdScrollView"
22 android:layout_width="fill_parent"
23 android:layout_height="fill_parent" >
24
25 <RelativeLayout
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content" >
28
29 <RelativeLayout
30 android:id="@+id/fdFileHeaderContainer"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:layout_marginLeft="16dp"
34 android:layout_marginTop="4dp" >
35
36 <ImageView
37 android:id="@+id/fdIcon"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:src="@drawable/file" />
41
42 <TextView
43 android:id="@+id/fdFilename"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_centerVertical="true"
47 android:layout_toRightOf="@+id/fdIcon"
48 android:text="@string/placeholder_filename"
49 android:textAppearance="?android:attr/textAppearanceLarge" />
50
51 </RelativeLayout>
52
53 <RelativeLayout
54 android:id="@+id/fdDetailsContainer"
55 android:layout_width="match_parent"
56 android:layout_height="wrap_content"
57 android:layout_below="@id/fdFileHeaderContainer" >
58
59 <RelativeLayout
60 android:id="@+id/fdLabelContainer"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_alignParentLeft="true"
64 android:layout_alignParentTop="true"
65 android:layout_marginLeft="16dp" >
66
67 <TextView
68 android:id="@+id/fdTypeLabel"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:layout_marginTop="24dp"
72 android:text="@string/filedetails_type"
73 android:textAppearance="?android:attr/textAppearanceMedium" />
74
75 <TextView
76 android:id="@+id/fdSizeLabel"
77 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
79 android:layout_below="@+id/fdTypeLabel"
80 android:layout_marginTop="12dp"
81 android:text="@string/filedetails_size"
82 android:textAppearance="?android:attr/textAppearanceMedium" />
83
84 <TextView
85 android:id="@+id/fdCreatedLabel"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
88 android:layout_below="@+id/fdSizeLabel"
89 android:layout_marginTop="12dp"
90 android:text="@string/filedetails_created"
91 android:visibility="gone"
92 android:textAppearance="?android:attr/textAppearanceMedium" />
93
94 <TextView
95 android:id="@+id/fdModifiedLabel"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:layout_below="@+id/fdCreatedLabel"
99 android:layout_marginTop="12dp"
100 android:text="@string/filedetails_modified"
101 android:textAppearance="?android:attr/textAppearanceMedium" />
102 </RelativeLayout>
103
104 <RelativeLayout
105 android:id="@+id/fdValueContainer"
106 android:layout_width="wrap_content"
107 android:layout_height="wrap_content"
108 android:layout_alignParentTop="true"
109 android:layout_marginLeft="12dp"
110 android:layout_toRightOf="@+id/fdLabelContainer" >
111
112 <TextView
113 android:id="@+id/fdType"
114 android:layout_width="wrap_content"
115 android:layout_height="wrap_content"
116 android:layout_marginTop="24dp"
117 android:text="@string/placeholder_filetype"
118 android:textAppearance="?android:attr/textAppearanceMedium" />
119
120 <TextView
121 android:id="@+id/fdSize"
122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content"
124 android:layout_below="@+id/fdType"
125 android:layout_marginTop="12dp"
126 android:text="@string/placeholder_filesize"
127 android:textAppearance="?android:attr/textAppearanceMedium" />
128
129 <TextView
130 android:id="@+id/fdCreated"
131 android:layout_width="wrap_content"
132 android:layout_height="wrap_content"
133 android:layout_below="@+id/fdSize"
134 android:layout_marginTop="12dp"
135 android:visibility="gone"
136 android:text="@string/placeholder_timestamp"
137 android:textAppearance="?android:attr/textAppearanceMedium" />
138
139 <TextView
140 android:id="@+id/fdModified"
141 android:layout_width="wrap_content"
142 android:layout_height="wrap_content"
143 android:layout_below="@+id/fdCreated"
144 android:layout_marginTop="12dp"
145 android:text="@string/placeholder_timestamp"
146 android:textAppearance="?android:attr/textAppearanceMedium" />
147
148 </RelativeLayout>
149
150 </RelativeLayout>
151
152 <RelativeLayout
153 android:id="@+id/fdProgressAndControl"
154 android:layout_width="match_parent"
155 android:layout_height="wrap_content"
156 android:layout_below="@+id/fdDetailsContainer"
157 android:gravity="center_horizontal"
158 android:layout_margin="16dp"
159 >
160
161 <CheckBox
162 android:id="@+id/fdKeepInSync"
163 android:layout_width="wrap_content"
164 android:layout_height="wrap_content"
165 android:layout_centerHorizontal="true"
166 android:text="@string/fd_keep_in_sync" />
167
168 <LinearLayout
169 android:layout_width="match_parent"
170 android:layout_height="wrap_content"
171 android:layout_below="@id/fdKeepInSync"
172 android:orientation="vertical" >
173
174 <TextView
175 android:id="@+id/fdProgressText"
176 android:layout_width="match_parent"
177 android:layout_height="wrap_content"
178 android:text="@string/downloader_download_in_progress_ticker"
179 />
180
181 <ProgressBar android:id="@+id/fdProgressBar"
182 android:layout_width="match_parent"
183 android:layout_height="wrap_content"
184 android:progressDrawable="@android:drawable/progress_horizontal"
185 android:indeterminate="false"
186 android:indeterminateOnly="false"
187 />
188
189 <LinearLayout
190 android:layout_width="match_parent"
191 android:layout_height="wrap_content"
192 android:gravity="center_horizontal"
193 android:layout_marginTop="12dp"
194 >
195
196 <Button
197 android:id="@+id/fdDownloadBtn"
198 android:layout_width="0dp"
199 android:layout_height="wrap_content"
200 android:layout_weight="1"
201 android:text="@string/filedetails_download" />
202
203 <Button
204 android:id="@+id/fdOpenBtn"
205 android:layout_width="0dp"
206 android:layout_height="wrap_content"
207 android:layout_weight="1"
208 android:text="@string/filedetails_open" />
209
210 </LinearLayout>
211
212 <LinearLayout
213 android:layout_width="match_parent"
214 android:layout_height="wrap_content"
215 android:gravity="center_horizontal"
216 android:layout_marginTop="12dp"
217 >
218
219 <Button
220 android:id="@+id/fdRenameBtn"
221 android:layout_width="0dp"
222 android:layout_height="wrap_content"
223 android:layout_weight="1"
224 android:text="@string/common_rename" />
225
226 <Button
227 android:id="@+id/fdRemoveBtn"
228 android:layout_width="0dp"
229 android:layout_height="wrap_content"
230 android:layout_weight="1"
231 android:text="@string/common_remove" />
232
233 </LinearLayout>
234
235 </LinearLayout>
236
237 </RelativeLayout>
238
239 </RelativeLayout>
240
241 </ScrollView>