Merge branch 'master' of https://github.com/owncloud/android into material_buttons
[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="@dimen/standard_margin"
36 android:layout_marginRight="@dimen/standard_margin"
37 android:layout_marginTop="@dimen/standard_margin">
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="@dimen/standard_margin"
61 android:layout_marginRight="@dimen/standard_margin"
62 android:layout_marginTop="@dimen/standard_margin"
63 android:layout_below="@id/fdFileHeaderContainer" >
64
65 <RelativeLayout
66 android:id="@+id/fdLabelContainer"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_alignParentLeft="true"
70 android:layout_alignParentTop="true" >
71
72 <TextView
73 android:id="@+id/fdTypeLabel"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
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="@dimen/standard_margin"
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:text="@string/placeholder_filetype"
121 android:textAppearance="?android:attr/textAppearanceMedium" />
122
123 <TextView
124 android:id="@+id/fdSize"
125 android:layout_width="wrap_content"
126 android:layout_height="wrap_content"
127 android:layout_below="@+id/fdType"
128 android:layout_marginTop="12dp"
129 android:text="@string/placeholder_filesize"
130 android:textAppearance="?android:attr/textAppearanceMedium" />
131
132 <TextView
133 android:id="@+id/fdCreated"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:layout_below="@+id/fdSize"
137 android:layout_marginTop="12dp"
138 android:visibility="gone"
139 android:text="@string/placeholder_timestamp"
140 android:textAppearance="?android:attr/textAppearanceMedium" />
141
142 <TextView
143 android:id="@+id/fdModified"
144 android:layout_width="wrap_content"
145 android:layout_height="wrap_content"
146 android:layout_below="@+id/fdCreated"
147 android:layout_marginTop="12dp"
148 android:text="@string/placeholder_timestamp"
149 android:textAppearance="?android:attr/textAppearanceMedium" />
150
151 </RelativeLayout>
152
153 </RelativeLayout>
154
155 <RelativeLayout
156 android:id="@+id/fdProgressAndControl"
157 android:layout_width="match_parent"
158 android:layout_height="wrap_content"
159 android:layout_below="@+id/fdDetailsContainer"
160 android:gravity="center_horizontal"
161 android:layout_margin="@dimen/standard_margin"
162 >
163
164 <android.support.v7.widget.AppCompatCheckBox
165 android:id="@+id/fdFavorite"
166 android:layout_width="wrap_content"
167 android:layout_height="wrap_content"
168 android:layout_centerHorizontal="true"
169 android:text="@string/favorite"
170 android:checked="false" />
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>