2015-10-14 13:58:07 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
ownCloud Android client application
|
|
|
|
Copyright (C) 2015 ownCloud Inc.
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
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/>.
|
|
|
|
-->
|
2016-03-21 19:47:55 +03:00
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/shareScroll"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context="com.owncloud.android.ui.fragment.ShareFileFragment">
|
2015-10-14 13:58:07 +03:00
|
|
|
|
2015-11-03 15:08:43 +03:00
|
|
|
<LinearLayout
|
2015-10-14 13:58:07 +03:00
|
|
|
android:layout_width="match_parent"
|
2015-11-02 19:20:49 +03:00
|
|
|
android:layout_height="wrap_content"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:orientation="vertical"
|
|
|
|
>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/shareHeaderContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:padding="@dimen/standard_padding">
|
2015-11-03 15:08:43 +03:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/shareFileIcon"
|
|
|
|
android:layout_width="@dimen/file_icon_size"
|
|
|
|
android:layout_height="@dimen/file_icon_size"
|
|
|
|
android:layout_gravity="center_vertical"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_marginRight="@dimen/standard_half_margin"
|
|
|
|
android:src="@drawable/file"/>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/shareFileName"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_marginEnd="@dimen/standard_half_margin"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:layout_marginLeft="4dp"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_marginRight="@dimen/standard_half_margin"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_toEndOf="@+id/shareFileIcon"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_toRightOf="@+id/shareFileIcon"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:ellipsize="middle"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/placeholder_filename"
|
|
|
|
android:textColor="@color/black"
|
|
|
|
android:textSize="16sp"/>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
|
|
|
<TextView
|
2016-03-21 19:47:55 +03:00
|
|
|
android:id="@+id/shareFileSize"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/shareFileName"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_gravity="center_vertical"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:layout_marginLeft="4dp"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_toEndOf="@+id/shareFileIcon"
|
|
|
|
android:layout_toRightOf="@+id/shareFileIcon"
|
|
|
|
android:text="@string/placeholder_filesize"
|
|
|
|
android:textSize="12sp"/>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
|
|
|
</RelativeLayout>
|
2015-10-14 13:58:07 +03:00
|
|
|
|
2016-03-21 19:47:55 +03:00
|
|
|
<View
|
|
|
|
android:id="@+id/share_header_divider"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:layout_width="match_parent"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_height="2dp"
|
|
|
|
android:background="@color/owncloud_blue"
|
|
|
|
/>
|
2015-10-14 13:58:07 +03:00
|
|
|
|
2016-03-21 19:47:55 +03:00
|
|
|
<LinearLayout
|
2016-04-25 12:02:38 +03:00
|
|
|
android:id="@+id/shareWithUsersSection"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:layout_width="match_parent"
|
2015-10-14 13:58:07 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:orientation="vertical"
|
2016-04-26 13:54:58 +03:00
|
|
|
android:paddingLeft="@dimen/standard_padding"
|
|
|
|
android:paddingRight="@dimen/standard_padding"
|
|
|
|
android:paddingTop="@dimen/standard_padding"
|
|
|
|
>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
2016-03-21 19:47:55 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/shareWithUsersSectionTitle"
|
|
|
|
style="?android:attr/listSeparatorTextViewStyle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:text="@string/share_with_user_section_title"
|
|
|
|
android:textColor="@color/color_accent"/>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
2016-03-21 19:47:55 +03:00
|
|
|
<ListView
|
|
|
|
android:id="@+id/shareUsersList"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dip"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:paddingLeft="@dimen/standard_half_padding"
|
|
|
|
android:scrollbars="vertical"
|
|
|
|
android:visibility="gone"/>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
2016-03-21 19:47:55 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/shareNoUsers"
|
|
|
|
android:layout_width="match_parent"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:padding="@dimen/standard_half_padding"
|
|
|
|
android:text="@string/share_no_users"
|
|
|
|
android:textSize="12sp"/>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
2016-03-21 19:47:55 +03:00
|
|
|
<android.support.v7.widget.AppCompatButton
|
|
|
|
android:id="@+id/addUserButton"
|
|
|
|
style="@style/ownCloud.Button"
|
|
|
|
android:layout_width="match_parent"
|
2015-11-03 15:08:43 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:contentDescription="shareAddUserButton"
|
|
|
|
android:text="@string/share_add_user_or_group"
|
|
|
|
android:theme="@style/Button.Primary"/>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
2016-04-26 13:54:58 +03:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/shareViaLinkSection"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingBottom="@dimen/standard_padding"
|
|
|
|
android:paddingLeft="@dimen/standard_padding"
|
|
|
|
android:paddingRight="@dimen/standard_padding"
|
|
|
|
>
|
|
|
|
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
|
|
android:id="@+id/shareViaLinkSectionSwitch"
|
|
|
|
style="?android:attr/listSeparatorTextViewStyle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:layout_marginTop="@dimen/standard_half_margin"
|
|
|
|
android:checked="false"
|
|
|
|
android:paddingRight="@dimen/standard_half_padding"
|
|
|
|
android:text="@string/share_via_link_section_title"
|
|
|
|
android:textColor="@color/color_accent"/>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
2016-04-25 12:02:38 +03:00
|
|
|
<LinearLayout
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:orientation="vertical"
|
2016-04-26 13:54:58 +03:00
|
|
|
android:layout_marginTop="@dimen/standard_half_margin">
|
2015-11-03 15:08:43 +03:00
|
|
|
|
2016-04-25 12:02:38 +03:00
|
|
|
<RelativeLayout
|
2016-04-26 13:54:58 +03:00
|
|
|
android:id="@+id/shareViaLinkEditPermissionSection"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:layout_width="match_parent"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-04-26 13:54:58 +03:00
|
|
|
android:visibility="invisible"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
2016-04-25 12:02:38 +03:00
|
|
|
>
|
|
|
|
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
2016-04-26 13:54:58 +03:00
|
|
|
android:id="@+id/shareViaLinkEditPermissionSwitch"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
2016-04-26 13:54:58 +03:00
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:padding="@dimen/standard_half_padding"
|
|
|
|
/>
|
2016-04-25 12:02:38 +03:00
|
|
|
|
|
|
|
<TextView
|
2016-04-26 13:54:58 +03:00
|
|
|
android:id="@+id/shareViaLinkEditPermissionLabel"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
2016-04-26 13:54:58 +03:00
|
|
|
android:layout_toLeftOf="@id/shareViaLinkEditPermissionSwitch"
|
|
|
|
android:layout_toStartOf="@id/shareViaLinkEditPermissionSwitch"
|
|
|
|
android:padding="@dimen/standard_half_padding"
|
|
|
|
android:text="@string/share_via_link_edit_permission_label"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:textColor="@color/black"
|
|
|
|
android:textSize="14sp"
|
|
|
|
/>
|
2016-07-18 18:27:38 +03:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
2016-09-06 15:04:28 +03:00
|
|
|
android:id="@+id/shareViaLinkHideFileListingPermissionSection"
|
2016-07-18 18:27:38 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
2016-09-06 15:04:28 +03:00
|
|
|
android:visibility="invisible"
|
2016-07-18 18:27:38 +03:00
|
|
|
>
|
|
|
|
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
2016-09-06 15:04:28 +03:00
|
|
|
android:id="@+id/shareViaLinkFileListingPermissionSwitch"
|
2016-07-18 18:27:38 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:padding="@dimen/standard_half_padding"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
2016-09-06 15:04:28 +03:00
|
|
|
android:id="@+id/shareViaLinkFileListingPermissionLabel"
|
2016-07-18 18:27:38 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
2016-09-06 15:04:28 +03:00
|
|
|
android:layout_toLeftOf="@id/shareViaLinkFileListingPermissionSwitch"
|
|
|
|
android:layout_toStartOf="@id/shareViaLinkFileListingPermissionSwitch"
|
2016-07-18 18:27:38 +03:00
|
|
|
android:padding="@dimen/standard_half_padding"
|
|
|
|
android:text="@string/share_via_link_hide_file_listing_permission_label"
|
|
|
|
android:textColor="@color/black"
|
|
|
|
android:textSize="14sp"
|
|
|
|
/>
|
2016-04-25 12:02:38 +03:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/shareViaLinkPasswordSection"
|
|
|
|
android:layout_width="match_parent"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-04-25 12:02:38 +03:00
|
|
|
>
|
|
|
|
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
|
|
android:id="@+id/shareViaLinkPasswordSwitch"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:padding="@dimen/standard_half_padding"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/shareViaLinkPasswordLabel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_toLeftOf="@id/shareViaLinkPasswordSwitch"
|
|
|
|
android:layout_toStartOf="@id/shareViaLinkPasswordSwitch"
|
|
|
|
android:paddingLeft="@dimen/standard_half_padding"
|
|
|
|
android:paddingRight="@dimen/standard_half_padding"
|
|
|
|
android:paddingTop="@dimen/standard_half_padding"
|
|
|
|
android:text="@string/share_via_link_password_label"
|
|
|
|
android:textColor="@color/black"
|
|
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/shareViaLinkPasswordValue"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_below="@id/shareViaLinkPasswordLabel"
|
|
|
|
android:layout_toLeftOf="@id/shareViaLinkPasswordSwitch"
|
|
|
|
android:layout_toStartOf="@id/shareViaLinkPasswordSwitch"
|
|
|
|
android:paddingBottom="@dimen/standard_half_padding"
|
|
|
|
android:paddingLeft="@dimen/standard_half_padding"
|
|
|
|
android:paddingRight="@dimen/standard_half_padding"
|
|
|
|
android:text="@string/share_via_link_password_title"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:visibility="invisible"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
2016-04-26 13:54:58 +03:00
|
|
|
android:id="@+id/shareViaLinkExpirationSection"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:layout_width="match_parent"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-04-25 12:02:38 +03:00
|
|
|
>
|
|
|
|
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
2016-04-26 13:54:58 +03:00
|
|
|
android:id="@+id/shareViaLinkExpirationSwitch"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
2016-04-26 13:54:58 +03:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:checked="false"
|
|
|
|
android:padding="@dimen/standard_half_padding"/>
|
2016-04-25 12:02:38 +03:00
|
|
|
|
|
|
|
<TextView
|
2016-04-26 13:54:58 +03:00
|
|
|
android:id="@+id/shareViaLinkExpirationLabel"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
2016-04-26 13:54:58 +03:00
|
|
|
android:layout_toLeftOf="@id/shareViaLinkExpirationSwitch"
|
|
|
|
android:layout_toStartOf="@id/shareViaLinkExpirationSwitch"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:paddingLeft="@dimen/standard_half_padding"
|
|
|
|
android:paddingRight="@dimen/standard_half_padding"
|
|
|
|
android:paddingTop="@dimen/standard_half_padding"
|
2016-04-26 13:54:58 +03:00
|
|
|
android:text="@string/share_via_link_expiration_date_label"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:textColor="@color/black"
|
|
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
|
|
|
2016-04-26 13:54:58 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/shareViaLinkExpirationValue"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_below="@id/shareViaLinkExpirationLabel"
|
|
|
|
android:layout_toLeftOf="@id/shareViaLinkExpirationSwitch"
|
|
|
|
android:layout_toStartOf="@id/shareViaLinkExpirationSwitch"
|
|
|
|
android:paddingBottom="@dimen/standard_half_padding"
|
|
|
|
android:paddingLeft="@dimen/standard_half_padding"
|
|
|
|
android:paddingRight="@dimen/standard_half_padding"
|
|
|
|
android:textSize="12sp"
|
|
|
|
/>
|
|
|
|
|
2016-04-25 12:02:38 +03:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatButton
|
|
|
|
android:id="@+id/shareViaLinkGetLinkButton"
|
|
|
|
style="@style/ownCloud.Button"
|
|
|
|
android:layout_width="match_parent"
|
2016-03-21 19:47:55 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-04-25 12:02:38 +03:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:contentDescription="shareGetLinkButton"
|
|
|
|
android:text="@string/share_get_public_link_button"
|
|
|
|
android:theme="@style/Button.Primary"/>
|
2016-03-21 19:47:55 +03:00
|
|
|
|
2016-04-25 12:02:38 +03:00
|
|
|
</LinearLayout>
|
2015-11-03 15:08:43 +03:00
|
|
|
|
2016-03-21 19:47:55 +03:00
|
|
|
</LinearLayout>
|
2015-10-14 13:58:07 +03:00
|
|
|
|
2016-04-26 13:54:58 +03:00
|
|
|
</LinearLayout>
|
|
|
|
|
2015-11-03 15:08:43 +03:00
|
|
|
</ScrollView>
|