804463878d34a8792a0cfbfc0f503299a5f56f21
[pub/Android/ownCloud.git] / res / layout / share_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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/shareScrollView"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:fillViewport="true"
23 style="Theme.owncloud">
24 <LinearLayout
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
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="8dp"
35 android:layout_marginBottom="8dp"
36 android:background="@color/background_color">
37
38 <ImageView
39 android:id="@+id/shareFileIcon"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:src="@drawable/file" />
43
44 <TextView
45 android:id="@+id/shareFileName"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:text="@string/placeholder_filename"
49 android:textAppearance="?android:attr/textAppearanceLarge"
50 android:layout_marginTop="39dp"
51 android:layout_alignParentTop="true"
52 android:layout_toRightOf="@+id/shareFileIcon"
53 android:layout_toEndOf="@+id/shareFileIcon" />
54
55 <TextView
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:textAppearance="?android:attr/textAppearanceMedium"
59 android:text="@string/placeholder_filesize"
60 android:id="@+id/shareFileSize"
61 android:layout_below="@+id/shareFileName"
62 android:layout_toRightOf="@+id/shareFileIcon"
63 android:layout_toEndOf="@+id/shareFileIcon"
64 android:layout_marginTop="12dp" />
65
66 </RelativeLayout>
67
68 <TextView
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:textAppearance="?android:attr/textAppearanceMedium"
72 android:text="@string/share_with_user_section_title"
73 android:id="@+id/shareWithUsersSectionTitle"
74 android:layout_gravity="left"
75 android:padding="8dp"
76 android:background="@color/actionbar_start_color"
77 android:textColor="@color/white"/>
78
79 <ListView
80 android:layout_width="match_parent"
81 android:layout_height="wrap_content"
82 android:id="@+id/shareUsersList"
83 android:visibility="gone" />
84
85 <TextView
86 android:layout_width="match_parent"
87 android:layout_height="wrap_content"
88 android:id="@+id/shareNoUsers"
89 android:text="@string/share_no_users"
90 android:padding="12dp" />
91
92 <android.support.v7.widget.AppCompatButton
93 android:id="@+id/addUserButton"
94 style="@style/ownCloud.Button"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
97 android:layout_gravity="center_horizontal"
98 android:text="@string/share_add_user_or_group"
99 android:contentDescription="shareAddUserButton"/>
100 </LinearLayout>
101 </ScrollView>