Fix layout: Missing label, fix for smaller screens
[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:textAppearance="?android:attr/textAppearanceMedium" />
95
96 <TextView
97 android:id="@+id/fdModifiedLabel"
98 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
100 android:layout_below="@+id/fdCreatedLabel"
101 android:layout_marginTop="12dp"
102 android:text="@string/filedetails_modified"
103 android:textAppearance="?android:attr/textAppearanceMedium" />
104 </RelativeLayout>
105
106 <RelativeLayout
107 android:id="@+id/fdValueContainer"
108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"
110 android:layout_alignParentTop="true"
111 android:layout_marginLeft="12dp"
112 android:layout_toRightOf="@+id/fdLabelContainer" >
113
114 <TextView
115 android:id="@+id/fdType"
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
118 android:layout_marginTop="24dp"
119 android:text="JPG Image"
120 android:textAppearance="?android:attr/textAppearanceMedium" />
121
122 <TextView
123 android:id="@+id/fdSize"
124 android:layout_width="wrap_content"
125 android:layout_height="wrap_content"
126 android:layout_below="@+id/fdType"
127 android:layout_marginTop="12dp"
128 android:text="389 KB"
129 android:textAppearance="?android:attr/textAppearanceMedium" />
130
131 <TextView
132 android:id="@+id/fdCreated"
133 android:layout_width="wrap_content"
134 android:layout_height="wrap_content"
135 android:layout_below="@+id/fdSize"
136 android:layout_marginTop="12dp"
137 android:text="2012/05/18 12:23 PM"
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="2012/05/19 02:56 PM"
147 android:textAppearance="?android:attr/textAppearanceMedium" />
148 </RelativeLayout>
149
150 </RelativeLayout>
151
152 <RelativeLayout
153 android:id="@+id/fdPreviewAndDL"
154 android:layout_width="match_parent"
155 android:layout_height="wrap_content"
156 android:layout_below="@+id/fdDetailsContainer" >
157
158 <ImageView
159 android:id="@+id/fdPreview"
160 android:layout_width="wrap_content"
161 android:layout_height="wrap_content"
162 android:layout_centerHorizontal="true"
163 android:layout_marginTop="16dp"
164 android:src="@drawable/owncloud_logo" />
165
166 <Button
167 android:id="@+id/fdDownloadBtn"
168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
170 android:layout_centerHorizontal="true"
171 android:layout_below="@+id/fdPreview"
172 android:layout_marginTop="12dp"
173 android:text="@string/filedetails_download" />
174 </RelativeLayout>
175 </RelativeLayout>
176 </ScrollView>
177
178 </RelativeLayout>