setting correct path on restore activity
[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_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:textAppearance="?android:attr/textAppearanceMedium" />
93 </RelativeLayout>
94
95 <RelativeLayout
96 android:id="@+id/fdValueContainer"
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
99 android:layout_centerHorizontal="true"
100 android:layout_marginLeft="4dp" >
101
102 <TextView
103 android:id="@+id/fdType"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:layout_marginTop="24dp"
107 android:text="JPG Image"
108 android:textAppearance="?android:attr/textAppearanceMedium" />
109
110 <TextView
111 android:id="@+id/fdSize"
112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:layout_below="@+id/fdType"
115 android:layout_marginTop="12dp"
116 android:text="389 KB"
117 android:textAppearance="?android:attr/textAppearanceMedium" />
118
119 <TextView
120 android:id="@+id/fdCreated"
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:layout_below="@+id/fdSize"
124 android:layout_marginTop="12dp"
125 android:text="2012/05/18 12:23 PM"
126 android:textAppearance="?android:attr/textAppearanceMedium" />
127
128 <TextView
129 android:id="@+id/fdModified"
130 android:layout_width="wrap_content"
131 android:layout_height="wrap_content"
132 android:layout_below="@+id/fdCreated"
133 android:layout_marginTop="12dp"
134 android:text="2012/05/19 02:56 PM"
135 android:textAppearance="?android:attr/textAppearanceMedium" />
136 </RelativeLayout>
137 </RelativeLayout>
138
139 <RelativeLayout
140 android:id="@+id/fdPreviewAndDL"
141 android:layout_width="match_parent"
142 android:layout_height="wrap_content"
143 android:layout_below="@+id/fdDetailsContainer" >
144
145 <ImageView
146 android:id="@+id/fdPreview"
147 android:layout_width="wrap_content"
148 android:layout_height="wrap_content"
149 android:layout_centerHorizontal="true"
150 android:layout_marginTop="16dp"
151 android:src="@drawable/owncloud_logo" />
152
153 <Button
154 android:id="@+id/fdDownloadBtn"
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
157 android:layout_centerHorizontal="true"
158 android:layout_below="@+id/fdPreview"
159 android:layout_marginTop="12dp"
160 android:text="@string/filedetails_download" />
161 </RelativeLayout>
162 </RelativeLayout>
163 </ScrollView>
164
165 </RelativeLayout>