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