2011-08-20 00:37:35 +04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2012-05-18 10:09:31 +04:00
|
|
|
<!--
|
2012-05-13 18:13:13 +04:00
|
|
|
ownCloud Android client application
|
|
|
|
|
|
|
|
Copyright (C) 2012 Bartek Przybylski
|
2013-02-07 21:45:10 +04:00
|
|
|
Copyright (C) 2012-2013 ownCloud Inc.
|
|
|
|
|
2012-05-13 18:13:13 +04:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2013-02-08 12:22:46 +04:00
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
2012-05-13 18:13:13 +04:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2012-05-18 10:09:31 +04:00
|
|
|
-->
|
2012-05-18 16:40:46 +04:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2012-04-07 04:52:50 +04:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:background="@color/owncloud_white" >
|
2012-04-07 04:52:50 +04:00
|
|
|
|
2012-05-18 10:09:31 +04:00
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/fdScrollView"
|
2012-04-07 04:52:50 +04:00
|
|
|
android:layout_width="fill_parent"
|
2012-05-18 10:09:31 +04:00
|
|
|
android:layout_height="fill_parent" >
|
2012-04-07 04:52:50 +04:00
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
<RelativeLayout
|
2012-05-18 16:05:21 +04:00
|
|
|
android:layout_width="match_parent"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_height="wrap_content" >
|
2012-04-07 04:52:50 +04:00
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdFileHeaderContainer"
|
|
|
|
android:layout_width="match_parent"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:layout_height="wrap_content"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginTop="4dp" >
|
2012-05-18 10:09:31 +04:00
|
|
|
|
2012-05-18 16:05:21 +04:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/fdIcon"
|
2012-05-18 10:09:31 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:src="@drawable/file" />
|
2012-05-18 10:09:31 +04:00
|
|
|
|
|
|
|
<TextView
|
2012-05-18 16:05:21 +04:00
|
|
|
android:id="@+id/fdFilename"
|
2012-05-18 10:09:31 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@+id/fdIcon"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:text="file.name"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
2012-05-18 16:40:46 +04:00
|
|
|
</RelativeLayout>
|
2012-05-18 10:09:31 +04:00
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdDetailsContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/fdFileHeaderContainer" >
|
2012-05-18 10:09:31 +04:00
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdLabelContainer"
|
|
|
|
android:layout_width="wrap_content"
|
2012-05-18 10:09:31 +04:00
|
|
|
android:layout_height="wrap_content"
|
2012-05-22 20:15:56 +04:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentTop="true"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_marginLeft="16dp" >
|
2012-05-18 10:09:31 +04:00
|
|
|
|
|
|
|
<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"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_below="@+id/fdTypeLabel"
|
2012-05-18 10:09:31 +04:00
|
|
|
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"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_below="@+id/fdSizeLabel"
|
2012-05-18 10:09:31 +04:00
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/filedetails_created"
|
2012-05-24 01:50:59 +04:00
|
|
|
android:visibility="gone"
|
2012-05-18 10:09:31 +04:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
2012-05-22 20:15:56 +04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdModifiedLabel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/fdCreatedLabel"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/filedetails_modified"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
2012-05-18 16:40:46 +04:00
|
|
|
</RelativeLayout>
|
2012-05-18 10:09:31 +04:00
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdValueContainer"
|
|
|
|
android:layout_width="wrap_content"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:layout_height="wrap_content"
|
2012-05-22 20:15:56 +04:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_toRightOf="@+id/fdLabelContainer" >
|
2012-05-18 16:05:21 +04:00
|
|
|
|
|
|
|
<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"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_below="@+id/fdType"
|
2012-05-18 16:05:21 +04:00
|
|
|
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"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_below="@+id/fdSize"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:layout_marginTop="12dp"
|
2012-05-24 01:50:59 +04:00
|
|
|
android:visibility="gone"
|
2012-05-18 16:05:21 +04:00
|
|
|
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"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_below="@+id/fdCreated"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="2012/05/19 02:56 PM"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
2012-05-18 16:40:46 +04:00
|
|
|
</RelativeLayout>
|
2012-05-22 20:15:56 +04:00
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
</RelativeLayout>
|
2012-05-18 16:05:21 +04:00
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdPreviewAndDL"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:layout_width="match_parent"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_height="wrap_content"
|
2012-07-08 18:57:48 +04:00
|
|
|
android:layout_below="@+id/fdDetailsContainer"
|
|
|
|
android:gravity="center_horizontal" >
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/fdKeepInSync"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:text="@string/fd_keep_in_sync" />
|
2012-05-18 16:05:21 +04:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/fdPreview"
|
2012-06-25 22:55:34 +04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2012-07-08 18:57:48 +04:00
|
|
|
android:layout_below="@id/fdKeepInSync"
|
2012-05-18 16:40:46 +04:00
|
|
|
android:layout_centerHorizontal="true"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:src="@drawable/owncloud_logo" />
|
|
|
|
|
2012-07-08 18:57:48 +04:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2012-05-18 16:05:21 +04:00
|
|
|
android:layout_height="wrap_content"
|
2012-07-08 18:57:48 +04:00
|
|
|
android:layout_below="@id/fdPreview"
|
2012-07-22 00:31:18 +04:00
|
|
|
android:orientation="vertical" >
|
2012-07-08 18:57:48 +04:00
|
|
|
|
2012-07-22 00:31:18 +04:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2012-07-11 00:52:31 +04:00
|
|
|
android:layout_height="wrap_content"
|
2012-07-22 00:31:18 +04:00
|
|
|
android:gravity="center_horizontal" >
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fdRemoveBtn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/common_remove" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fdOpenBtn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/filedetails_open" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2012-07-20 12:13:50 +04:00
|
|
|
android:layout_height="wrap_content"
|
2012-07-22 00:31:18 +04:00
|
|
|
android:gravity="center_horizontal">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fdDownloadBtn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/filedetails_download" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fdRenameBtn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/common_rename" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2012-07-08 18:57:48 +04:00
|
|
|
<!--
|
|
|
|
<Button
|
|
|
|
android:id="@+id/fdShareBtn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/common_share" />
|
|
|
|
-->
|
2012-07-11 00:52:31 +04:00
|
|
|
|
2012-07-08 18:57:48 +04:00
|
|
|
</LinearLayout>
|
2012-05-18 16:40:46 +04:00
|
|
|
</RelativeLayout>
|
2012-07-08 18:57:48 +04:00
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
</RelativeLayout>
|
2012-05-18 10:09:31 +04:00
|
|
|
</ScrollView>
|
|
|
|
|
2012-05-18 16:40:46 +04:00
|
|
|
</RelativeLayout>
|