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"
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:
padding=
"8dp"
157 android:
text=
"@string/share_via_link_expiration_date_label"
158 android:
textSize=
"16sp"
162 android:
id=
"@+id/shareViaLinkExpirationValue"
163 android:
layout_width=
"wrap_content"
164 android:
layout_height=
"wrap_content"
165 android:
layout_alignParentLeft=
"true"
166 android:
layout_alignParentStart=
"true"
167 android:
layout_toLeftOf=
"@id/shareViaLinkExpirationSwitch"
168 android:
layout_toStartOf=
"@id/shareViaLinkExpirationSwitch"
169 android:
layout_below=
"@id/shareViaLinkExpirationLabel"
170 android:
padding=
"8dp"
171 android:
textSize=
"12sp"
177 android:
layout_width=
"match_parent"
178 android:
layout_height=
"wrap_content"
179 android:
id=
"@+id/shareViaLinkPasswordSection"
183 android:
id=
"@+id/shareViaLinkPasswordSwitch"
184 android:
layout_width=
"wrap_content"
185 android:
layout_height=
"wrap_content"
186 android:
layout_alignParentRight=
"true"
187 android:
layout_alignParentEnd=
"true"
188 android:
layout_centerInParent=
"true"
189 android:
padding=
"8dp"
193 android:
id=
"@+id/shareViaLinkPasswordLabel"
194 android:
layout_width=
"wrap_content"
195 android:
layout_height=
"wrap_content"
196 android:
layout_alignParentLeft=
"true"
197 android:
layout_alignParentStart=
"true"
198 android:
layout_toLeftOf=
"@id/shareViaLinkPasswordSwitch"
199 android:
layout_toStartOf=
"@id/shareViaLinkPasswordSwitch"
200 android:
padding=
"8dp"
201 android:
text=
"@string/share_via_link_password_label"
202 android:
textSize=
"16sp"
206 android:
id=
"@+id/shareViaLinkPasswordValue"
207 android:
layout_width=
"wrap_content"
208 android:
layout_height=
"wrap_content"
209 android:
layout_alignParentLeft=
"true"
210 android:
layout_alignParentStart=
"true"
211 android:
layout_toLeftOf=
"@id/shareViaLinkPasswordSwitch"
212 android:
layout_toStartOf=
"@id/shareViaLinkPasswordSwitch"
213 android:
layout_below=
"@id/shareViaLinkPasswordLabel"
214 android:
padding=
"8dp"
215 android:
text=
"@string/share_via_link_password_title"
216 android:
textSize=
"12sp"
217 android:
visibility=
"invisible"
222 <android.support.v7.widget.AppCompatButton
223 android:
id=
"@+id/shareViewLinkGetLinkButton"
224 style=
"@style/ownCloud.Button"
225 android:
layout_width=
"match_parent"
226 android:
layout_height=
"wrap_content"
227 android:
layout_gravity=
"center_horizontal"
228 android:
text=
"@string/share_get_public_link_button"
229 android:
contentDescription=
"shareGetLinkButton"/>