16e7404d7204beb73f8feee6854da1e0a93e18ea
[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 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="fill_parent"
21 android:layout_height="fill_parent"
22 android:background="@color/owncloud_white"
23 android:orientation="vertical" >
24
25 <ScrollView
26 android:id="@+id/fdScrollView"
27 android:layout_width="fill_parent"
28 android:layout_height="fill_parent" >
29
30 <LinearLayout
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:orientation="vertical" >
34
35 <LinearLayout
36 android:layout_width="fill_parent"
37 android:layout_height="wrap_content"
38 android:orientation="horizontal" >
39
40 <ImageView
41 android:id="@+id/fdIcon"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:layout_marginLeft="16dp"
45 android:layout_marginTop="4dp"
46 android:src="@drawable/file" />
47
48 <TextView
49 android:id="@+id/fdFilename"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_marginLeft="4dp"
53 android:text="file.name"
54 android:textAppearance="?android:attr/textAppearanceLarge" />
55 </LinearLayout>
56
57 <LinearLayout
58 android:layout_width="wrap_content"
59 android:layout_height="match_parent"
60 android:orientation="horizontal" >
61
62 <LinearLayout
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:layout_weight="1"
66 android:orientation="vertical"
67 android:paddingLeft="16dp" >
68
69 <TextView
70 android:id="@+id/fdTypeLabel"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:layout_marginTop="24dp"
74 android:text="@string/filedetails_type"
75 android:textAppearance="?android:attr/textAppearanceMedium" />
76
77 <TextView
78 android:id="@+id/fdSizeLabel"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
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_marginTop="12dp"
90 android:text="@string/filedetails_created"
91 android:textAppearance="?android:attr/textAppearanceMedium" />
92
93 <TextView
94 android:id="@+id/fdModifiedLabel"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:layout_marginTop="12dp"
98 android:text="@string/filedetails_modified"
99 android:textAppearance="?android:attr/textAppearanceMedium" />
100 </LinearLayout>
101
102 <LinearLayout
103 android:layout_width="match_parent"
104 android:layout_height="wrap_content"
105 android:layout_weight="2"
106 android:orientation="vertical"
107 android:paddingLeft="4dp" >
108
109 <TextView
110 android:id="@+id/fdType"
111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
113 android:layout_marginTop="24dp"
114 android:text="JPG Image"
115 android:textAppearance="?android:attr/textAppearanceMedium" />
116
117 <TextView
118 android:id="@+id/fdSize"
119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
121 android:layout_marginTop="12dp"
122 android:text="389 KB"
123 android:textAppearance="?android:attr/textAppearanceMedium" />
124
125 <TextView
126 android:id="@+id/fdCreated"
127 android:layout_width="wrap_content"
128 android:layout_height="wrap_content"
129 android:layout_marginTop="12dp"
130 android:text="2012/05/18 12:23 PM"
131 android:textAppearance="?android:attr/textAppearanceMedium" />
132
133 <TextView
134 android:id="@+id/fdModified"
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 android:layout_marginTop="12dp"
138 android:text="2012/05/19 02:56 PM"
139 android:textAppearance="?android:attr/textAppearanceMedium" />
140 </LinearLayout>
141 </LinearLayout>
142
143 <LinearLayout
144 android:layout_width="match_parent"
145 android:layout_height="match_parent"
146 android:orientation="vertical" >
147
148 <ImageView
149 android:id="@+id/fdPreview"
150 android:layout_width="wrap_content"
151 android:layout_height="wrap_content"
152 android:layout_marginTop="16dp"
153 android:layout_gravity="center_horizontal"
154 android:src="@drawable/owncloud_logo" />
155
156 <Button
157 android:id="@+id/fdDownloadBtn"
158 android:layout_width="wrap_content"
159 android:layout_height="wrap_content"
160 android:layout_marginTop="12dp"
161 android:layout_gravity="center_horizontal"
162 android:text="@string/filedetails_download" />
163 </LinearLayout>
164 </LinearLayout>
165 </ScrollView>
166
167 </LinearLayout>