Add new string for share_groups_indicator
[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="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:maxWidth="96dp"
43 android:layout_margin="12dp"
44 android:src="@drawable/file" />
45
46 <TextView
47 android:id="@+id/shareFileName"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:text="@string/placeholder_filename"
51 android:textAppearance="?android:attr/textAppearanceLarge"
52 android:layout_marginTop="39dp"
53 android:layout_alignParentTop="true"
54 android:layout_toRightOf="@+id/shareFileIcon"
55 android:layout_toEndOf="@+id/shareFileIcon" />
56
57 <TextView
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:textAppearance="?android:attr/textAppearanceMedium"
61 android:text="@string/placeholder_filesize"
62 android:id="@+id/shareFileSize"
63 android:layout_below="@+id/shareFileName"
64 android:layout_toRightOf="@+id/shareFileIcon"
65 android:layout_toEndOf="@+id/shareFileIcon"
66 android:layout_marginTop="12dp" />
67
68 </RelativeLayout>
69
70 <TextView
71 android:layout_width="match_parent"
72 android:layout_height="wrap_content"
73 android:textAppearance="?android:attr/textAppearanceMedium"
74 android:text="@string/share_with_user_section_title"
75 android:id="@+id/shareWithUsersSectionTitle"
76 android:layout_gravity="left"
77 android:padding="8dp"
78 android:background="@color/actionbar_start_color"
79 android:textColor="@color/white"/>
80
81 <ListView
82 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
84 android:id="@+id/shareUsersList"
85 android:visibility="gone"
86 android:scrollbars="vertical"/>
87
88 <TextView
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 android:id="@+id/shareNoUsers"
92 android:text="@string/share_no_users"
93 android:padding="12dp" />
94
95 <android.support.v7.widget.AppCompatButton
96 android:id="@+id/addUserButton"
97 style="@style/ownCloud.Button"
98 android:layout_width="match_parent"
99 android:layout_height="wrap_content"
100 android:layout_gravity="center_horizontal"
101 android:text="@string/share_add_user_or_group"
102 android:contentDescription="shareAddUserButton"/>
103
104 </LinearLayout>
105 </FrameLayout>