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
|
|
|
|
|
2017-06-30 15:01:06 +03:00
|
|
|
Copyright (C) 2012 Bartek Przybylski
|
|
|
|
Copyright (C) 2017 ownCloud GmbH.
|
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"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:id="@+id/fdScrollView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fillViewport="true">
|
2013-02-19 16:28:01 +04:00
|
|
|
|
2017-06-30 15:01:06 +03:00
|
|
|
<LinearLayout
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="match_parent"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2013-02-19 16:28:01 +04:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdFileHeaderContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_margin="@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"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:src="@drawable/file"/>
|
|
|
|
|
2013-02-19 16:28:01 +04:00
|
|
|
<TextView
|
2017-06-30 15:01:06 +03:00
|
|
|
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"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:text="@string/placeholder_filename"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
|
|
|
|
2013-02-19 16:28:01 +04:00
|
|
|
</RelativeLayout>
|
2017-06-30 15:01:06 +03:00
|
|
|
|
|
|
|
<TableLayout
|
|
|
|
android:id="@+id/fdDetailsTable"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginBottom="8dp">
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
android:id="@+id/fdTypeRow"
|
|
|
|
android:layout_width="match_parent"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin">
|
|
|
|
|
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"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:textSize="16sp" />
|
2013-02-19 16:28:01 +04:00
|
|
|
<TextView
|
2017-06-30 15:01:06 +03:00
|
|
|
android:id="@+id/fdType"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:text="@string/placeholder_filetype"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_marginLeft="@dimen/standard_half_margin" />
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
|
|
android:id="@+id/fdSizeRow"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin">
|
2013-02-19 16:28:01 +04:00
|
|
|
<TextView
|
2017-06-30 15:01:06 +03:00
|
|
|
android:id="@+id/fdSizeLabel"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:text="@string/filedetails_size"
|
|
|
|
android:textSize="16sp"/>
|
2013-02-19 16:28:01 +04:00
|
|
|
<TextView
|
2017-06-30 15:01:06 +03:00
|
|
|
android:id="@+id/fdSize"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:text="@string/placeholder_filesize"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_marginLeft="@dimen/standard_half_margin" />
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
|
|
android:id="@+id/fdCreatedRow"
|
|
|
|
android:layout_width="match_parent"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:padding="5dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:visibility="gone">
|
2013-02-19 16:28:01 +04:00
|
|
|
<TextView
|
2017-06-30 15:01:06 +03:00
|
|
|
android:id="@+id/fdCreatedLabel"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:text="@string/filedetails_created"
|
|
|
|
android:textSize="16sp" />
|
2013-02-19 16:28:01 +04:00
|
|
|
<TextView
|
2017-06-30 15:01:06 +03:00
|
|
|
android:id="@+id/fdCreated"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:text="@string/placeholder_timestamp"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_marginLeft="4dp" />
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
|
|
android:id="@+id/fdModifiedRow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin">
|
2013-02-19 16:28:01 +04:00
|
|
|
<TextView
|
2017-06-30 15:01:06 +03:00
|
|
|
android:id="@+id/fdModifiedLabel"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:text="@string/filedetails_modified"
|
|
|
|
android:textSize="16sp" />
|
2013-02-19 16:28:01 +04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdModified"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/placeholder_timestamp"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_marginLeft="@dimen/standard_half_margin" />
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
</TableLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="@color/list_divider_background"/>
|
|
|
|
|
2013-02-19 16:28:01 +04:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/fdProgressAndControl"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
|
|
|
android:layout_marginLeft="@dimen/standard_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_margin"
|
|
|
|
android:layout_marginTop="@dimen/standard_half_margin"
|
|
|
|
android:gravity="center_horizontal">
|
|
|
|
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
2015-07-22 19:13:45 +03:00
|
|
|
android:id="@+id/fdFavorite"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_width="match_parent"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_gravity="start"
|
2015-08-13 19:08:21 +03:00
|
|
|
android:text="@string/favorite"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:textSize="16sp"/>
|
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"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdProgressText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:text="@string/downloader_download_in_progress_ticker"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/fdProgressBlock"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_marginBottom="@dimen/standard_quarter_margin"
|
|
|
|
android:layout_marginTop="@dimen/standard_half_margin"
|
2013-06-05 13:08:33 +04:00
|
|
|
android:gravity="center"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/fdProgressBar"
|
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
android:layout_width="0dp"
|
2013-02-19 16:28:01 +04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:indeterminate="false"
|
|
|
|
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"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_marginLeft="@dimen/standard_half_margin"
|
2013-06-05 13:08:33 +04:00
|
|
|
android:background="@android:color/transparent"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:src="@drawable/ic_cancel"/>
|
|
|
|
|
2013-02-19 16:28:01 +04:00
|
|
|
</LinearLayout>
|
2017-06-30 15:01:06 +03:00
|
|
|
|
2013-02-19 16:28:01 +04:00
|
|
|
</LinearLayout>
|
2017-06-30 15:01:06 +03:00
|
|
|
|
2013-02-19 16:28:01 +04:00
|
|
|
</RelativeLayout>
|
|
|
|
|
2017-06-30 15:01:06 +03:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="@color/list_divider_background"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/fdShareContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
|
|
|
android:layout_marginLeft="@dimen/standard_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_margin"
|
|
|
|
android:layout_marginTop="@dimen/standard_half_margin"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdShareTitle"
|
|
|
|
style="?android:attr/listSeparatorTextViewStyle"
|
2017-06-30 15:30:03 +03:00
|
|
|
android:textColor="@color/color_accent"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
|
|
|
android:text="@string/action_share"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/fdShareLinkIcon"
|
|
|
|
android:layout_width="14sp"
|
|
|
|
android:layout_height="14sp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginRight="@dimen/standard_half_margin"
|
|
|
|
android:src="@drawable/shared_via_link"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdSharebyLink"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:text="@string/filedetails_share_link_disable"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdShareWithUsersTitle"
|
|
|
|
style="?android:attr/listSeparatorTextViewStyle"
|
2017-06-30 15:30:03 +03:00
|
|
|
android:textColor="@color/color_accent"
|
2017-06-30 15:01:06 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
|
|
|
android:layout_marginTop="@dimen/standard_half_margin"
|
|
|
|
android:text="@string/filedetails_share_users_with_access"/>
|
|
|
|
|
|
|
|
<ListView
|
|
|
|
android:id="@+id/fdshareUsersList"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dip"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/fdShareNoUsers"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/share_no_users"
|
|
|
|
android:textSize="14sp"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2013-02-19 16:28:01 +04:00
|
|
|
</ScrollView>
|