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