nextcloud-android/src/main/res/layout/file_details_fragment.xml

293 lines
9.3 KiB
XML
Raw Normal View History

2011-08-20 00:37:35 +04:00
<?xml version="1.0" encoding="utf-8"?>
<!--
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
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.
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/>.
-->
<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">
2017-06-30 15:01:06 +03:00
<LinearLayout
android:layout_width="match_parent"
2017-06-30 15:01:06 +03:00
android:layout_height="wrap_content"
android:orientation="vertical">
<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">
<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"/>
<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"
android:paddingLeft="@dimen/standard_padding"
2017-06-30 15:01:06 +03:00
android:text="@string/placeholder_filename"
android:textAppearance="?android:attr/textAppearanceLarge"/>
</RelativeLayout>
2017-06-30 15:01:06 +03:00
<TableLayout
android:id="@+id/fdDetailsTable"
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"
android:layout_height="wrap_content"
2017-06-30 15:01:06 +03:00
android:layout_marginBottom="@dimen/standard_half_margin">
<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" />
<TextView
2017-06-30 15:01:06 +03:00
android:id="@+id/fdType"
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">
<TextView
2017-06-30 15:01:06 +03:00
android:id="@+id/fdSizeLabel"
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"/>
<TextView
2017-06-30 15:01:06 +03:00
android:id="@+id/fdSize"
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"
android:layout_height="wrap_content"
2017-06-30 15:01:06 +03:00
android:padding="5dp"
android:layout_marginTop="12dp"
android:visibility="gone">
<TextView
2017-06-30 15:01:06 +03:00
android:id="@+id/fdCreatedLabel"
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" />
<TextView
2017-06-30 15:01:06 +03:00
android:id="@+id/fdCreated"
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">
<TextView
2017-06-30 15:01:06 +03:00
android:id="@+id/fdModifiedLabel"
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" />
<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"/>
<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
android:id="@+id/fdFavorite"
2017-06-30 15:01:06 +03:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-06-30 15:01:06 +03:00
android:layout_gravity="start"
android:text="@string/favorite"
2017-06-30 15:01:06 +03:00
android:textSize="16sp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
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"
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"
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"
android:layout_height="wrap_content"
android:layout_weight="1"
2017-06-30 15:01:06 +03:00
android:indeterminate="false"
android:indeterminateOnly="false"/>
<ImageButton
android:id="@+id/fdCancelBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-06-30 15:01:06 +03:00
android:layout_marginLeft="@dimen/standard_half_margin"
android:background="@android:color/transparent"
2017-06-30 15:01:06 +03:00
android:src="@drawable/ic_cancel"/>
</LinearLayout>
2017-06-30 15:01:06 +03:00
</LinearLayout>
2017-06-30 15:01:06 +03: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>
</ScrollView>