|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<!--
|
|
|
+<!--
|
|
|
ownCloud Android client application
|
|
|
|
|
|
Copyright (C) 2012 Bartek Przybylski
|
|
@@ -15,97 +15,151 @@
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
- -->
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+-->
|
|
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="fill_parent"
|
|
|
android:layout_height="fill_parent"
|
|
|
- android:background="#F7F7F7"
|
|
|
- android:orientation="vertical" >
|
|
|
+ android:background="@color/owncloud_white" >
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/linearLayout1"
|
|
|
+ <ScrollView
|
|
|
+ android:id="@+id/fdScrollView"
|
|
|
android:layout_width="fill_parent"
|
|
|
- android:layout_height="wrap_content" >
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/linearLayout2"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="fill_parent" >
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/imageView1"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:src="@drawable/icon" >
|
|
|
- </ImageView>
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/linearLayout3"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="fill_parent"
|
|
|
- android:orientation="vertical" >
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/textView1"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="TextView" >
|
|
|
- </TextView>
|
|
|
+ android:layout_height="fill_parent" >
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/textView2"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="TextView" >
|
|
|
- </TextView>
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" >
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/textView3"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/fdFileHeaderContainer"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="TextView" >
|
|
|
- </TextView>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/textView4"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
+ android:layout_marginTop="4dp" >
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fdIcon"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/file" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fdFilename"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_toRightOf="@+id/fdIcon"
|
|
|
+ android:text="file.name"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/fdDetailsContainer"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="TextView" >
|
|
|
- </TextView>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/textView5"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_below="@+id/fdFileHeaderContainer" >
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/fdLabelContainer"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="16dp" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fdTypeLabel"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
+ android:text="@string/filedetails_type"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fdSizeLabel"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@+id/fdTypeLabel"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:text="@string/filedetails_size"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fdCreatedLabel"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@+id/fdSizeLabel"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:text="@string/filedetails_created"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/fdValueContainer"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_marginLeft="4dp" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fdType"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
+ android:text="JPG Image"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fdSize"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@+id/fdType"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:text="389 KB"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fdCreated"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@+id/fdSize"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:text="2012/05/18 12:23 PM"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fdModified"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@+id/fdCreated"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:text="2012/05/19 02:56 PM"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+ </RelativeLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/fdPreviewAndDL"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="TextView" >
|
|
|
- </TextView>
|
|
|
- </LinearLayout>
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/linearLayout4"
|
|
|
- android:layout_width="fill_parent"
|
|
|
- android:layout_height="fill_parent" >
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/imageView2"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:src="@drawable/action_item_btn" />
|
|
|
-
|
|
|
- <VideoView
|
|
|
- android:id="@+id/videoView1"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent" />
|
|
|
-
|
|
|
- <ListView
|
|
|
- android:id="@android:id/list"
|
|
|
- android:layout_width="fill_parent"
|
|
|
- android:layout_height="fill_parent"
|
|
|
- android:divider="@drawable/uploader_list_separator"
|
|
|
- android:dividerHeight="1dip" >
|
|
|
- </ListView>
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
-</LinearLayout>
|
|
|
+ android:layout_below="@+id/fdDetailsContainer" >
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fdPreview"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:src="@drawable/owncloud_logo" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/fdDownloadBtn"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_below="@+id/fdPreview"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:text="@string/filedetails_download" />
|
|
|
+ </RelativeLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+</RelativeLayout>
|