|
@@ -1,5 +1,5 @@
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
-<!--
|
|
|
|
|
|
+<!--
|
|
ownCloud Android client application
|
|
ownCloud Android client application
|
|
|
|
|
|
Copyright (C) 2012 Bartek Przybylski
|
|
Copyright (C) 2012 Bartek Przybylski
|
|
@@ -15,97 +15,146 @@
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
- -->
|
|
|
|
|
|
+-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
- android:background="#F7F7F7"
|
|
|
|
|
|
+ android:background="@color/owncloud_white"
|
|
android:orientation="vertical" >
|
|
android:orientation="vertical" >
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
- android:id="@+id/linearLayout1"
|
|
|
|
|
|
+ <ScrollView
|
|
|
|
+ android:id="@+id/fdScrollView"
|
|
android:layout_width="fill_parent"
|
|
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>
|
|
|
|
|
|
+ android:layout_height="fill_parent" >
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
- android:id="@+id/linearLayout3"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="fill_parent"
|
|
|
|
|
|
+ android:layout_width="fill_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
android:orientation="vertical" >
|
|
android:orientation="vertical" >
|
|
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/textView1"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:text="TextView" >
|
|
|
|
- </TextView>
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/textView2"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:text="TextView" >
|
|
|
|
- </TextView>
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/textView3"
|
|
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/fdIcon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:text="TextView" >
|
|
|
|
- </TextView>
|
|
|
|
|
|
+ android:layout_alignParentLeft="true"
|
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
|
+ android:src="@drawable/file" />
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
- android:id="@+id/textView4"
|
|
|
|
|
|
+ android:id="@+id/fdFilename"
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:text="TextView" >
|
|
|
|
- </TextView>
|
|
|
|
|
|
+ android:layout_alignBottom="@+id/fdIcon"
|
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
|
+ android:text="file.name"
|
|
|
|
+ android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/textView5"
|
|
|
|
|
|
+ <LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:text="TextView" >
|
|
|
|
- </TextView>
|
|
|
|
|
|
+ android:layout_height="wrap_content" >
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/fdType"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_above="@+id/fdCreatedLabel"
|
|
|
|
+ android:layout_alignLeft="@+id/fdFilename"
|
|
|
|
+ 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_above="@+id/fdSizeLabel"
|
|
|
|
+ android:layout_alignLeft="@+id/fdFilename"
|
|
|
|
+ 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_above="@+id/fdModifiedLabel"
|
|
|
|
+ android:layout_alignLeft="@+id/fdFilename"
|
|
|
|
+ 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_alignBaseline="@+id/fdModifiedLabel"
|
|
|
|
+ android:layout_alignBottom="@+id/fdModifiedLabel"
|
|
|
|
+ android:layout_alignLeft="@+id/fdCreated"
|
|
|
|
+ android:text="2012/05/19 02:56 PM"
|
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/fdPreview"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_below="@+id/fdModified"
|
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
|
+ android:src="@drawable/owncloud_logo" />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_alignParentLeft="true"
|
|
|
|
+ android:layout_alignParentTop="true" >
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/fdTypeLabel"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_alignLeft="@+id/fdIcon"
|
|
|
|
+ android:layout_below="@+id/fdIcon"
|
|
|
|
+ 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_alignLeft="@+id/fdIcon"
|
|
|
|
+ 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_alignLeft="@+id/fdIcon"
|
|
|
|
+ android:layout_below="@+id/fdSizeLabel"
|
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
|
+ android:text="@string/filedetails_created"
|
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/fdModifiedLabel"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_alignLeft="@+id/fdIcon"
|
|
|
|
+ android:layout_below="@+id/fdCreatedLabel"
|
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
|
+ android:text="@string/filedetails_modified"
|
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ </LinearLayout>
|
|
</LinearLayout>
|
|
</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>
|
|
|
|
|
|
+ </ScrollView>
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/fdDownloadBtn"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_below="@+id/fdScrollView"
|
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
|
+ android:text="@string/filedetails_download" />
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|