1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 ownCloud Android client application
4 Copyright (C)
2015 ownCloud Inc.
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version
2,
8 as published by the Free Software Foundation.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see
<http://www.gnu.org/licenses
/>.
18 <ScrollView xmlns:
android=
"http://schemas.android.com/apk/res/android"
19 xmlns:
tools=
"http://schemas.android.com/tools"
20 android:
layout_width=
"match_parent"
21 android:
layout_height=
"match_parent"
22 tools:
context=
"com.owncloud.android.ui.fragment.ShareFileFragment"
23 android:
id=
"@+id/shareScroll">
26 android:
layout_width=
"match_parent"
27 android:
layout_height=
"wrap_content"
28 android:
background=
"@color/background_material_light"
29 android:
orientation=
"vertical"
33 android:
id=
"@+id/shareHeaderContainer"
34 android:
layout_width=
"match_parent"
35 android:
layout_height=
"wrap_content"
36 android:
layout_marginTop=
"6dp"
37 android:
layout_marginBottom=
"6dp"
38 android:
background=
"@color/background_color">
41 android:
id=
"@+id/shareFileIcon"
42 android:
layout_width=
"@dimen/file_icon_size"
43 android:
layout_height=
"@dimen/file_icon_size"
44 android:
src=
"@drawable/file"
45 android:
layout_marginLeft=
"12dp"
46 android:
layout_marginRight=
"12dp"
47 android:
layout_gravity=
"center_vertical"
48 android:
layout_marginTop=
"12dp"
49 android:
layout_marginBottom=
"12dp"/>
52 android:
id=
"@+id/shareFileName"
53 android:
layout_width=
"wrap_content"
54 android:
layout_height=
"wrap_content"
55 android:
text=
"@string/placeholder_filename"
56 android:
textSize=
"16sp"
57 android:
layout_gravity=
"center_vertical"
58 android:
layout_marginLeft=
"4dp"
59 android:
layout_marginStart=
"4dp"
60 android:
layout_marginRight=
"8dp"
61 android:
layout_marginEnd=
"8dp"
62 android:
layout_toRightOf=
"@+id/shareFileIcon"
63 android:
layout_toEndOf=
"@+id/shareFileIcon"
64 android:
singleLine=
"true"
65 android:
ellipsize=
"middle"
66 android:
layout_marginTop=
"12dp"/>
69 android:
layout_width=
"wrap_content"
70 android:
layout_height=
"wrap_content"
71 android:
textSize=
"12sp"
72 android:
text=
"@string/placeholder_filesize"
73 android:
id=
"@+id/shareFileSize"
74 android:
layout_below=
"@+id/shareFileName"
75 android:
layout_toRightOf=
"@+id/shareFileIcon"
76 android:
layout_toEndOf=
"@+id/shareFileIcon"
77 android:
layout_marginTop=
"4dp"
78 android:
layout_marginLeft=
"4dp"
79 android:
layout_marginStart=
"4dp"
80 android:
layout_marginBottom=
"12dp"
81 android:
layout_gravity=
"center_vertical"/>
86 android:
layout_width=
"match_parent"
87 android:
layout_height=
"wrap_content"
88 android:
textSize=
"16sp"
89 android:
text=
"@string/share_with_user_section_title"
90 android:
id=
"@+id/shareWithUsersSectionTitle"
91 android:
layout_gravity=
"start"
93 android:
background=
"@color/actionbar_start_color"
94 android:
textColor=
"@color/white"/>
97 android:
layout_width=
"match_parent"
98 android:
layout_height=
"0dip"
99 android:
id=
"@+id/shareUsersList"
100 android:
visibility=
"gone"
101 android:
scrollbars=
"vertical"
102 android:
layout_weight=
"1"/>
105 android:
layout_width=
"match_parent"
106 android:
layout_height=
"wrap_content"
107 android:
id=
"@+id/shareNoUsers"
108 android:
text=
"@string/share_no_users"
109 android:
textSize=
"12sp"
110 android:
padding=
"12dp" />
112 <android.support.v7.widget.AppCompatButton
113 android:
id=
"@+id/addUserButton"
114 style=
"@style/ownCloud.Button"
115 android:
layout_width=
"match_parent"
116 android:
layout_height=
"wrap_content"
117 android:
layout_gravity=
"center_horizontal"
118 android:
text=
"@string/share_add_user_or_group"
119 android:
contentDescription=
"shareAddUserButton"/>
122 android:
layout_width=
"match_parent"
123 android:
layout_height=
"wrap_content"
124 android:
textSize=
"16sp"
125 android:
text=
"@string/share_via_link_section_title"
126 android:
id=
"@+id/shareViaLinkSectionSwitch"
127 android:
layout_gravity=
"start"
128 android:
padding=
"8dp"
129 android:
background=
"@color/actionbar_start_color"
130 android:
textColor=
"@color/white"/>
133 android:
layout_width=
"match_parent"
134 android:
layout_height=
"wrap_content"
135 android:
id=
"@+id/shareViaLinkExpirationSection"
139 android:
id=
"@+id/shareViaLinkExpirationSwitch"
140 android:
layout_width=
"wrap_content"
141 android:
layout_height=
"wrap_content"
142 android:
layout_alignParentRight=
"true"
143 android:
layout_alignParentEnd=
"true"
144 android:
layout_centerInParent=
"true"
145 android:
padding=
"8dp"
149 android:
id=
"@+id/shareViaLinkExpirationLabel"
150 android:
layout_width=
"wrap_content"
151 android:
layout_height=
"wrap_content"
152 android:
layout_alignParentLeft=
"true"
153 android:
layout_alignParentStart=
"true"
154 android:
layout_toLeftOf=
"@id/shareViaLinkExpirationSwitch"
155 android:
layout_toStartOf=
"@id/shareViaLinkExpirationSwitch"
156 android:
paddingTop=
"8dp"
157 android:
paddingLeft=
"8dp"
158 android:
paddingRight=
"8dp"
159 android:
text=
"@string/share_via_link_expiration_date_label"
160 android:
textSize=
"16sp"
164 android:
id=
"@+id/shareViaLinkExpirationValue"
165 android:
layout_width=
"wrap_content"
166 android:
layout_height=
"wrap_content"
167 android:
layout_alignParentLeft=
"true"
168 android:
layout_alignParentStart=
"true"
169 android:
layout_toLeftOf=
"@id/shareViaLinkExpirationSwitch"
170 android:
layout_toStartOf=
"@id/shareViaLinkExpirationSwitch"
171 android:
layout_below=
"@id/shareViaLinkExpirationLabel"
172 android:
paddingLeft=
"8dp"
173 android:
paddingRight=
"8dp"
174 android:
paddingBottom=
"8dp"
175 android:
textSize=
"12sp"
181 android:
layout_width=
"match_parent"
182 android:
layout_height=
"wrap_content"
183 android:
id=
"@+id/shareViaLinkPasswordSection"
187 android:
id=
"@+id/shareViaLinkPasswordSwitch"
188 android:
layout_width=
"wrap_content"
189 android:
layout_height=
"wrap_content"
190 android:
layout_alignParentRight=
"true"
191 android:
layout_alignParentEnd=
"true"
192 android:
layout_centerInParent=
"true"
193 android:
padding=
"8dp"
197 android:
id=
"@+id/shareViaLinkPasswordLabel"
198 android:
layout_width=
"wrap_content"
199 android:
layout_height=
"wrap_content"
200 android:
layout_alignParentLeft=
"true"
201 android:
layout_alignParentStart=
"true"
202 android:
layout_toLeftOf=
"@id/shareViaLinkPasswordSwitch"
203 android:
layout_toStartOf=
"@id/shareViaLinkPasswordSwitch"
204 android:
paddingTop=
"8dp"
205 android:
paddingLeft=
"8dp"
206 android:
paddingRight=
"8dp"
207 android:
text=
"@string/share_via_link_password_label"
208 android:
textSize=
"16sp"
212 android:
id=
"@+id/shareViaLinkPasswordValue"
213 android:
layout_width=
"wrap_content"
214 android:
layout_height=
"wrap_content"
215 android:
layout_alignParentLeft=
"true"
216 android:
layout_alignParentStart=
"true"
217 android:
layout_toLeftOf=
"@id/shareViaLinkPasswordSwitch"
218 android:
layout_toStartOf=
"@id/shareViaLinkPasswordSwitch"
219 android:
layout_below=
"@id/shareViaLinkPasswordLabel"
220 android:
paddingLeft=
"8dp"
221 android:
paddingRight=
"8dp"
222 android:
paddingBottom=
"8dp"
223 android:
text=
"@string/share_via_link_password_title"
224 android:
textSize=
"12sp"
225 android:
visibility=
"invisible"
230 <android.support.v7.widget.AppCompatButton
231 android:
id=
"@+id/shareViaLinkGetLinkButton"
232 style=
"@style/ownCloud.Button"
233 android:
layout_width=
"match_parent"
234 android:
layout_height=
"wrap_content"
235 android:
layout_gravity=
"center_horizontal"
236 android:
text=
"@string/share_get_public_link_button"
237 android:
contentDescription=
"shareGetLinkButton"/>