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
|
|
|
|
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
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(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"
|
|
|
|
android:gravity="center_horizontal" >
|
|
|
|
|
2012-07-11 00:52:31 +04:00
|
|
|
<Button
|
2012-07-11 20:46:47 +04:00
|
|
|
android:id="@+id/fdRemoveBtn"
|
2012-07-11 00:52:31 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/common_remove" />
|
|
|
|
|
2012-07-20 12:13:50 +04:00
|
|
|
<Button
|
|
|
|
android:id="@+id/fdOpenBtn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/filedetails_open" />
|
|
|
|
|
2012-07-08 18:57:48 +04:00
|
|
|
<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
|
2012-07-11 00:52:31 +04:00
|
|
|
android:id="@+id/fdRenameBtn"
|
2012-07-08 18:57:48 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
2012-07-11 00:52:31 +04:00
|
|
|
android:text="@string/common_rename" />
|
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>
|