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
|
2015-03-05 15:27:45 +03:00
|
|
|
Copyright (C) 2015 ownCloud Inc.
|
2013-02-07 21:45:10 +04:00
|
|
|
|
2012-05-13 18:13:13 +04:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
2013-04-17 14:26:13 +04:00
|
|
|
it under the terms of the GNU General Public License version 2,
|
|
|
|
as published by the Free Software Foundation.
|
2012-05-13 18:13:13 +04:00
|
|
|
|
|
|
|
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
|
|
|
-->
|
2013-02-19 16:28:01 +04:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/fdScrollView"
|
2013-06-04 16:30:29 +04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-07-27 17:33:10 +03:00
|
|
|
android:fillViewport="true"
|
2013-06-04 16:30:29 +04:00
|
|
|
>
|
2013-02-19 16:28:01 +04:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" >
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdFileHeaderContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-08-13 19:08:21 +03:00
|
|
|
android:layout_marginLeft="@dimen/standard_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_margin"
|
2015-08-13 19:39:53 +03:00
|
|
|
android:layout_marginTop="@dimen/standard_margin">
|
2013-02-19 16:28:01 +04:00
|
|
|
|
|
|
|
<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"
|
2016-12-13 16:19:45 +03:00
|
|
|
android:paddingLeft="@dimen/standard_padding"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:text="@string/placeholder_filename"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdDetailsContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-08-13 19:08:21 +03:00
|
|
|
android:layout_marginLeft="@dimen/standard_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_margin"
|
2015-08-13 19:39:53 +03:00
|
|
|
android:layout_marginTop="@dimen/standard_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_below="@id/fdFileHeaderContainer" >
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdLabelContainer"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
2015-07-27 17:33:10 +03:00
|
|
|
android:layout_alignParentTop="true" >
|
2013-02-19 16:28:01 +04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdTypeLabel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
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"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_marginTop="@dimen/fragment_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
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"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_marginTop="@dimen/fragment_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:text="@string/filedetails_created"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdModifiedLabel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/fdCreatedLabel"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_marginTop="@dimen/fragment_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:text="@string/filedetails_modified"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdValueContainer"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2015-08-13 19:39:53 +03:00
|
|
|
android:layout_marginLeft="@dimen/standard_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_toRightOf="@+id/fdLabelContainer" >
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdType"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/placeholder_filetype"
|
|
|
|
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"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_marginTop="@dimen/fragment_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:text="@string/placeholder_filesize"
|
|
|
|
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"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_marginTop="@dimen/fragment_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:visibility="gone"
|
|
|
|
android:text="@string/placeholder_timestamp"
|
|
|
|
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"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_marginTop="@dimen/fragment_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:text="@string/placeholder_timestamp"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdProgressAndControl"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/fdDetailsContainer"
|
|
|
|
android:gravity="center_horizontal"
|
2015-08-13 19:08:21 +03:00
|
|
|
android:layout_margin="@dimen/standard_margin"
|
2013-02-19 16:28:01 +04:00
|
|
|
>
|
|
|
|
|
2015-08-13 19:39:53 +03:00
|
|
|
<android.support.v7.widget.AppCompatCheckBox
|
2015-07-22 19:13:45 +03:00
|
|
|
android:id="@+id/fdFavorite"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
2015-08-13 19:08:21 +03:00
|
|
|
android:text="@string/favorite"
|
|
|
|
android:checked="false" />
|
2013-02-19 16:28:01 +04:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-07-22 19:13:45 +03:00
|
|
|
android:layout_below="@id/fdFavorite"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:orientation="vertical" >
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdProgressText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/downloader_download_in_progress_ticker"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<LinearLayout
|
2013-04-22 16:34:42 +04:00
|
|
|
android:id="@+id/fdProgressBlock"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2013-06-05 13:08:33 +04:00
|
|
|
android:gravity="center"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_marginTop="@dimen/fragment_margin"
|
|
|
|
android:layout_marginBottom="@dimen/fragment_margin"
|
2013-04-22 16:34:42 +04:00
|
|
|
android:orientation="horizontal"
|
2013-02-19 16:28:01 +04:00
|
|
|
>
|
|
|
|
|
2013-04-22 16:34:42 +04:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/fdProgressBar"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_width="@dimen/zero"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2015-07-26 03:54:03 +03:00
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
android:indeterminate="false"
|
2013-04-22 16:34:42 +04:00
|
|
|
android:indeterminateOnly="false"
|
|
|
|
/>
|
|
|
|
|
2013-06-05 13:08:33 +04:00
|
|
|
<ImageButton
|
2013-04-22 16:34:42 +04:00
|
|
|
android:id="@+id/fdCancelBtn"
|
|
|
|
android:layout_width="wrap_content"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_height="wrap_content"
|
2016-10-07 03:36:54 +03:00
|
|
|
android:layout_marginLeft="@dimen/fragment_margin"
|
2016-07-11 15:44:55 +03:00
|
|
|
android:src="@drawable/ic_action_cancel_grey"
|
2013-06-05 13:08:33 +04:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
/>
|
2013-02-19 16:28:01 +04:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|