Merge branch 'material_buttons' of https://github.com/owncloud/android into material_fab
[pub/Android/ownCloud.git] / res / layout / share_file_layout.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4 Copyright (C) 2015 ownCloud Inc.
5
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.
9
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.
14
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/>.
17 -->
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 tools:context="com.owncloud.android.ui.fragment.ShareFileFragment">
23
24 <LinearLayout
25 android:layout_width="match_parent"
26 android:layout_height="match_parent"
27 android:background="@color/background_material_light"
28 android:orientation="vertical">
29
30 <RelativeLayout
31 android:id="@+id/shareHeaderContainer"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:layout_marginTop="6dp"
35 android:layout_marginBottom="6dp"
36 android:background="@color/background_color">
37
38 <ImageView
39 android:id="@+id/shareFileIcon"
40 android:layout_width="@dimen/file_icon_size"
41 android:layout_height="@dimen/file_icon_size"
42 android:src="@drawable/file"
43 android:layout_marginLeft="12dp"
44 android:layout_marginRight="12dp"
45 android:layout_gravity="center_vertical"
46 android:layout_marginTop="12dp"
47 android:layout_marginBottom="12dp"/>
48
49 <TextView
50 android:id="@+id/shareFileName"
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:text="@string/placeholder_filename"
54 android:textSize="16dip"
55 android:layout_gravity="center_vertical"
56 android:layout_marginLeft="4dp"
57 android:layout_marginRight="8dp"
58 android:layout_toRightOf="@+id/shareFileIcon"
59 android:layout_toEndOf="@+id/shareFileIcon"
60 android:singleLine="true"
61 android:ellipsize="middle"
62 android:layout_marginTop="12dp"/>
63
64 <TextView
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:textSize="12dip"
68 android:text="@string/placeholder_filesize"
69 android:id="@+id/shareFileSize"
70 android:layout_below="@+id/shareFileName"
71 android:layout_toRightOf="@+id/shareFileIcon"
72 android:layout_toEndOf="@+id/shareFileIcon"
73 android:layout_marginTop="4dp"
74 android:layout_marginLeft="4dp"
75 android:layout_marginBottom="12dp"
76 android:layout_gravity="center_vertical"/>
77
78 </RelativeLayout>
79
80 <TextView
81 android:layout_width="match_parent"
82 android:layout_height="wrap_content"
83 android:textSize="16dip"
84 android:text="@string/share_with_user_section_title"
85 android:id="@+id/shareWithUsersSectionTitle"
86 android:layout_gravity="left"
87 android:padding="8dp"
88 android:background="@color/actionbar_start_color"
89 android:textColor="@color/white"/>
90
91 <ListView
92 android:layout_width="match_parent"
93 android:layout_height="0dip"
94 android:id="@+id/shareUsersList"
95 android:visibility="gone"
96 android:scrollbars="vertical"
97 android:layout_weight="1"/>
98
99 <TextView
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:id="@+id/shareNoUsers"
103 android:text="@string/share_no_users"
104 android:textSize="12dip"
105 android:padding="12dp" />
106
107 <android.support.v7.widget.AppCompatButton
108 android:id="@+id/addUserButton"
109 style="@style/ownCloud.Button"
110 android:layout_width="match_parent"
111 android:layout_height="wrap_content"
112 android:layout_gravity="center_horizontal"
113 android:text="@string/share_add_user_or_group"
114 android:contentDescription="shareAddUserButton"/>
115
116 </LinearLayout>
117 </FrameLayout>