Show the layout to hsare with user in phone and tablet
[pub/Android/ownCloud.git] / res / layout / share_file_dialog.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
19 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:tools="http://schemas.android.com/tools"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 tools:context="com.owncloud.android.ui.dialog.ShareFileDialogFragment">
24
25 <ScrollView
26 android:id="@+id/shareScrollView"
27 android:layout_width="match_parent"
28 android:layout_height="match_parent"
29 android:fillViewport="true">
30
31 <LinearLayout
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:orientation="vertical"
35 android:layout_marginBottom="8dp">
36
37 <RelativeLayout
38 android:id="@+id/shareHeaderContainer"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:layout_margin="8dp">
42
43 <ImageView
44 android:id="@+id/shareFileIcon"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:src="@drawable/file"
48 android:layout_margin="8dp"
49 android:maxHeight="96dp"
50 android:maxWidth="96dp"/>
51
52 <TextView
53 android:id="@+id/shareFileName"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:text="@string/placeholder_filename"
57 android:textAppearance="?android:attr/textAppearanceLarge"
58 android:layout_marginTop="39dp"
59 android:layout_alignParentTop="true"
60 android:layout_toRightOf="@+id/shareFileIcon"
61 android:layout_toEndOf="@+id/shareFileIcon" />
62
63 <TextView
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:textAppearance="?android:attr/textAppearanceMedium"
67 android:text="@string/placeholder_filesize"
68 android:id="@+id/shareFileSize"
69 android:layout_below="@+id/shareFileName"
70 android:layout_toRightOf="@+id/shareFileIcon"
71 android:layout_toEndOf="@+id/shareFileIcon"
72 android:layout_marginTop="12dp" />
73
74 </RelativeLayout>
75
76 <TextView
77 android:layout_width="match_parent"
78 android:layout_height="wrap_content"
79 android:textAppearance="?android:attr/textAppearanceMedium"
80 android:text="@string/share_with_user_section_title"
81 android:id="@+id/shareWithUsersSectionTitle"
82 android:layout_gravity="left"
83 android:padding="8dp"
84 android:background="@color/actionbar_start_color"
85 android:textColor="@color/white"/>
86
87 <ListView
88 android:layout_width="match_parent"
89 android:layout_height="wrap_content"
90 android:id="@+id/shareUsersList"
91 android:visibility="gone" />
92
93 <TextView
94 android:layout_width="match_parent"
95 android:layout_height="wrap_content"
96 android:id="@+id/shareNoUsers"
97 android:text="@string/share_no_users"
98 android:padding="12dp" />
99
100 <android.support.v7.widget.AppCompatButton
101 android:id="@+id/addUserButton"
102 style="@style/ownCloud.Button"
103 android:layout_width="match_parent"
104 android:layout_height="wrap_content"
105 android:layout_gravity="center_horizontal"
106 android:text="@string/share_add_user_or_group"
107 android:contentDescription="shareAddUserButton"/>
108 </LinearLayout>
109 </ScrollView>
110 </FrameLayout>