Fixed: Rotating screen after viewing a file would return you to the
[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 <RelativeLayout 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
24 <ScrollView
25 android:id="@+id/fdScrollView"
26 android:layout_width="fill_parent"
27 android:layout_height="fill_parent" >
28
29 <RelativeLayout
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content" >
32
33 <RelativeLayout
34 android:id="@+id/fdFileHeaderContainer"
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:layout_marginLeft="16dp"
38 android:layout_marginTop="4dp" >
39
40 <ImageView
41 android:id="@+id/fdIcon"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:src="@drawable/file" />
45
46 <TextView
47 android:id="@+id/fdFilename"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_centerVertical="true"
51 android:layout_toRightOf="@+id/fdIcon"
52 android:text="file.name"
53 android:textAppearance="?android:attr/textAppearanceLarge" />
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_below="@+id/fdFileHeaderContainer" >
61
62 <RelativeLayout
63 android:id="@+id/fdLabelContainer"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_alignParentLeft="true"
67 android:layout_alignParentTop="true"
68 android:layout_marginLeft="16dp" >
69
70 <TextView
71 android:id="@+id/fdTypeLabel"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:layout_marginTop="24dp"
75 android:text="@string/filedetails_type"
76 android:textAppearance="?android:attr/textAppearanceMedium" />
77
78 <TextView
79 android:id="@+id/fdSizeLabel"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_below="@+id/fdTypeLabel"
83 android:layout_marginTop="12dp"
84 android:text="@string/filedetails_size"
85 android:textAppearance="?android:attr/textAppearanceMedium" />
86
87 <TextView
88 android:id="@+id/fdCreatedLabel"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:layout_below="@+id/fdSizeLabel"
92 android:layout_marginTop="12dp"
93 android:text="@string/filedetails_created"
94 android:visibility="gone"
95 android:textAppearance="?android:attr/textAppearanceMedium" />
96
97 <TextView
98 android:id="@+id/fdModifiedLabel"
99 android:layout_width="wrap_content"
100 android:layout_height="wrap_content"
101 android:layout_below="@+id/fdCreatedLabel"
102 android:layout_marginTop="12dp"
103 android:text="@string/filedetails_modified"
104 android:textAppearance="?android:attr/textAppearanceMedium" />
105 </RelativeLayout>
106
107 <RelativeLayout
108 android:id="@+id/fdValueContainer"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
111 android:layout_alignParentTop="true"
112 android:layout_marginLeft="12dp"
113 android:layout_toRightOf="@+id/fdLabelContainer" >
114
115 <TextView
116 android:id="@+id/fdType"
117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
119 android:layout_marginTop="24dp"
120 android:text="JPG Image"
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="389 KB"
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="2012/05/18 12:23 PM"
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="2012/05/19 02:56 PM"
149 android:textAppearance="?android:attr/textAppearanceMedium" />
150 </RelativeLayout>
151
152 </RelativeLayout>
153
154 <RelativeLayout
155 android:id="@+id/fdPreviewAndDL"
156 android:layout_width="match_parent"
157 android:layout_height="wrap_content"
158 android:layout_below="@+id/fdDetailsContainer" >
159
160 <ImageView
161 android:id="@+id/fdPreview"
162 android:layout_width="wrap_content"
163 android:layout_height="wrap_content"
164 android:layout_centerHorizontal="true"
165 android:layout_marginTop="16dp"
166 android:src="@drawable/owncloud_logo" />
167
168 <Button
169 android:id="@+id/fdDownloadBtn"
170 android:layout_width="wrap_content"
171 android:layout_height="wrap_content"
172 android:layout_centerHorizontal="true"
173 android:layout_below="@+id/fdPreview"
174 android:layout_marginTop="12dp"
175 android:text="@string/filedetails_download" />
176 </RelativeLayout>
177 </RelativeLayout>
178 </ScrollView>
179
180 </RelativeLayout>