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 <FrameLayout 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 xmlns:
app=
"http://schemas.android.com/apk/res-auto"
23 tools:
context=
"com.owncloud.android.ui.fragment.ShareFileFragment">
26 android:
layout_width=
"match_parent"
27 android:
layout_height=
"match_parent"
28 android:
background=
"@color/background_material_light"
29 android:
orientation=
"vertical">
32 android:
id=
"@+id/shareHeaderContainer"
33 android:
layout_width=
"match_parent"
34 android:
layout_height=
"wrap_content"
35 android:
layout_marginTop=
"8dp"
36 android:
layout_marginBottom=
"8dp"
37 android:
background=
"@color/background_color">
40 android:
id=
"@+id/shareFileIcon"
41 android:
layout_width=
"wrap_content"
42 android:
layout_height=
"wrap_content"
43 android:
maxWidth=
"96dp"
44 android:
layout_margin=
"12dp"
45 android:
src=
"@drawable/file" />
48 android:
id=
"@+id/shareFileName"
49 android:
layout_width=
"wrap_content"
50 android:
layout_height=
"wrap_content"
51 android:
text=
"@string/placeholder_filename"
52 android:
textAppearance=
"?android:attr/textAppearanceLarge"
53 android:
layout_marginTop=
"39dp"
54 android:
layout_alignParentTop=
"true"
55 android:
layout_toRightOf=
"@+id/shareFileIcon"
56 android:
layout_toEndOf=
"@+id/shareFileIcon" />
59 android:
layout_width=
"wrap_content"
60 android:
layout_height=
"wrap_content"
61 android:
textAppearance=
"?android:attr/textAppearanceMedium"
62 android:
text=
"@string/placeholder_filesize"
63 android:
id=
"@+id/shareFileSize"
64 android:
layout_below=
"@+id/shareFileName"
65 android:
layout_toRightOf=
"@+id/shareFileIcon"
66 android:
layout_toEndOf=
"@+id/shareFileIcon"
67 android:
layout_marginTop=
"12dp" />
72 android:
layout_width=
"match_parent"
73 android:
layout_height=
"wrap_content"
74 android:
textAppearance=
"?android:attr/textAppearanceMedium"
75 android:
text=
"@string/share_with_user_section_title"
76 android:
id=
"@+id/shareWithUsersSectionTitle"
77 android:
layout_gravity=
"left"
79 android:
background=
"@color/actionbar_start_color"
80 android:
textColor=
"@color/white"/>
83 android:
layout_width=
"match_parent"
84 android:
layout_height=
"wrap_content"
85 android:
id=
"@+id/shareUsersList"
86 android:
visibility=
"gone"
87 android:
scrollbars=
"vertical"/>
90 android:
layout_width=
"match_parent"
91 android:
layout_height=
"wrap_content"
92 android:
id=
"@+id/shareNoUsers"
93 android:
text=
"@string/share_no_users"
94 android:
padding=
"12dp" />
96 <android.support.design.widget.FloatingActionButton
97 android:
id=
"@+id/addUserButton"
98 android:
layout_width=
"wrap_content"
99 android:
layout_height=
"wrap_content"
100 android:
layout_gravity=
"bottom|end"
101 android:
layout_margin=
"@dimen/fab_margin"
102 android:
src=
"@android:drawable/ic_input_add"
103 android:
contentDescription=
"shareAddUserButton"
104 app:
backgroundTint=
"@color/actionbar_start_color"
105 app:
rippleColor=
"@color/background_color" />