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 <LinearLayout 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 android:
background=
"@color/background_material_light"
23 android:
orientation=
"vertical"
24 tools:
context=
"com.owncloud.android.ui.fragment.ShareFileFragment">
27 android:
id=
"@+id/shareHeaderContainer"
28 android:
layout_width=
"match_parent"
29 android:
layout_height=
"wrap_content"
30 android:
layout_marginTop=
"6dp"
31 android:
layout_marginBottom=
"6dp"
32 android:
background=
"@color/background_color">
35 android:
id=
"@+id/shareFileIcon"
36 android:
layout_width=
"@dimen/file_icon_size"
37 android:
layout_height=
"@dimen/file_icon_size"
38 android:
src=
"@drawable/file"
39 android:
layout_marginLeft=
"12dp"
40 android:
layout_marginRight=
"12dp"
41 android:
layout_gravity=
"center_vertical"
42 android:
layout_marginTop=
"12dp"
43 android:
layout_marginBottom=
"12dp"/>
46 android:
id=
"@+id/shareFileName"
47 android:
layout_width=
"wrap_content"
48 android:
layout_height=
"wrap_content"
49 android:
text=
"@string/placeholder_filename"
50 android:
textSize=
"16dip"
51 android:
layout_gravity=
"center_vertical"
52 android:
layout_marginLeft=
"4dp"
53 android:
layout_marginRight=
"8dp"
54 android:
layout_toRightOf=
"@+id/shareFileIcon"
55 android:
layout_toEndOf=
"@+id/shareFileIcon"
56 android:
singleLine=
"true"
57 android:
ellipsize=
"middle"
58 android:
layout_marginTop=
"12dp"/>
61 android:
layout_width=
"wrap_content"
62 android:
layout_height=
"wrap_content"
63 android:
textSize=
"12dip"
64 android:
text=
"@string/placeholder_filesize"
65 android:
id=
"@+id/shareFileSize"
66 android:
layout_below=
"@+id/shareFileName"
67 android:
layout_toRightOf=
"@+id/shareFileIcon"
68 android:
layout_toEndOf=
"@+id/shareFileIcon"
69 android:
layout_marginTop=
"4dp"
70 android:
layout_marginLeft=
"4dp"
71 android:
layout_marginBottom=
"12dp"
72 android:
layout_gravity=
"center_vertical"/>
77 android:
layout_width=
"match_parent"
78 android:
layout_height=
"wrap_content"
79 android:
textSize=
"16dip"
80 android:
text=
"@string/share_with_user_section_title"
81 android:
id=
"@+id/shareWithUsersSectionTitle"
82 android:
layout_gravity=
"left"
84 android:
background=
"@color/actionbar_start_color"
85 android:
textColor=
"@color/white"/>
88 android:
layout_width=
"match_parent"
89 android:
layout_height=
"0dip"
90 android:
id=
"@+id/shareUsersList"
91 android:
visibility=
"gone"
92 android:
scrollbars=
"vertical"
93 android:
layout_weight=
"1"/>
96 android:
layout_width=
"match_parent"
97 android:
layout_height=
"wrap_content"
98 android:
id=
"@+id/shareNoUsers"
99 android:
text=
"@string/share_no_users"
100 android:
textSize=
"12dip"
101 android:
padding=
"12dp" />
103 <android.support.v7.widget.AppCompatButton
104 android:
id=
"@+id/addUserButton"
105 style=
"@style/ownCloud.Button"
106 android:
layout_width=
"match_parent"
107 android:
layout_height=
"wrap_content"
108 android:
layout_gravity=
"center_horizontal"
109 android:
text=
"@string/share_add_user_or_group"
110 android:
contentDescription=
"shareAddUserButton"/>