Intermediate commit: Work on new FileDetailFragment layout, simplified
[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="fill_parent"
32 android:layout_height="wrap_content"
33 android:orientation="vertical" >
34
35 <ImageView
36 android:id="@+id/fdIcon"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:layout_alignParentLeft="true"
40 android:layout_marginLeft="16dp"
41 android:src="@drawable/file" />
42
43 <TextView
44 android:id="@+id/fdFilename"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_alignBottom="@+id/fdIcon"
48 android:layout_centerHorizontal="true"
49 android:text="file.name"
50 android:textAppearance="?android:attr/textAppearanceLarge" />
51
52 <LinearLayout
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content" >
55
56 <TextView
57 android:id="@+id/fdType"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_above="@+id/fdCreatedLabel"
61 android:layout_alignLeft="@+id/fdFilename"
62 android:text="JPG Image"
63 android:textAppearance="?android:attr/textAppearanceMedium" />
64
65 <TextView
66 android:id="@+id/fdSize"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_above="@+id/fdSizeLabel"
70 android:layout_alignLeft="@+id/fdFilename"
71 android:text="389 KB"
72 android:textAppearance="?android:attr/textAppearanceMedium" />
73
74 <TextView
75 android:id="@+id/fdCreated"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:layout_above="@+id/fdModifiedLabel"
79 android:layout_alignLeft="@+id/fdFilename"
80 android:text="2012/05/18 12:23 PM"
81 android:textAppearance="?android:attr/textAppearanceMedium" />
82
83 <TextView
84 android:id="@+id/fdModified"
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:layout_alignBaseline="@+id/fdModifiedLabel"
88 android:layout_alignBottom="@+id/fdModifiedLabel"
89 android:layout_alignLeft="@+id/fdCreated"
90 android:text="2012/05/19 02:56 PM"
91 android:textAppearance="?android:attr/textAppearanceMedium" />
92
93 <ImageView
94 android:id="@+id/fdPreview"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:layout_below="@+id/fdModified"
98 android:layout_centerHorizontal="true"
99 android:layout_marginTop="16dp"
100 android:src="@drawable/owncloud_logo" />
101
102 <LinearLayout
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:layout_alignParentLeft="true"
106 android:layout_alignParentTop="true" >
107
108 <TextView
109 android:id="@+id/fdTypeLabel"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_alignLeft="@+id/fdIcon"
113 android:layout_below="@+id/fdIcon"
114 android:layout_marginTop="24dp"
115 android:text="@string/filedetails_type"
116 android:textAppearance="?android:attr/textAppearanceMedium" />
117
118 <TextView
119 android:id="@+id/fdSizeLabel"
120 android:layout_width="wrap_content"
121 android:layout_height="wrap_content"
122 android:layout_alignLeft="@+id/fdIcon"
123 android:layout_below="@+id/fdTypeLabel"
124 android:layout_marginTop="12dp"
125 android:text="@string/filedetails_size"
126 android:textAppearance="?android:attr/textAppearanceMedium" />
127
128 <TextView
129 android:id="@+id/fdCreatedLabel"
130 android:layout_width="wrap_content"
131 android:layout_height="wrap_content"
132 android:layout_alignLeft="@+id/fdIcon"
133 android:layout_below="@+id/fdSizeLabel"
134 android:layout_marginTop="12dp"
135 android:text="@string/filedetails_created"
136 android:textAppearance="?android:attr/textAppearanceMedium" />
137
138 <TextView
139 android:id="@+id/fdModifiedLabel"
140 android:layout_width="wrap_content"
141 android:layout_height="wrap_content"
142 android:layout_alignLeft="@+id/fdIcon"
143 android:layout_below="@+id/fdCreatedLabel"
144 android:layout_marginTop="12dp"
145 android:text="@string/filedetails_modified"
146 android:textAppearance="?android:attr/textAppearanceMedium" />
147 </LinearLayout>
148 </LinearLayout>
149 </LinearLayout>
150 </ScrollView>
151
152 <Button
153 android:id="@+id/fdDownloadBtn"
154 android:layout_width="wrap_content"
155 android:layout_height="wrap_content"
156 android:layout_below="@+id/fdScrollView"
157 android:layout_centerHorizontal="true"
158 android:text="@string/filedetails_download" />
159
160 </LinearLayout>