Merge branch '1193_uploader_layout' of https://github.com/owncloud/android into beta
[pub/Android/ownCloud.git] / res / layout / list_fragment.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012 Bartek Przybylski
6 Copyright (C) 2015 ownCloud Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2,
10 as published by the Free Software Foundation.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 -->
20 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 xmlns:fab="http://schemas.android.com/apk/res-auto"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent">
24
25 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
26 xmlns:tools="http://schemas.android.com/tools"
27 xmlns:fab="http://schemas.android.com/apk/res-auto"
28 android:layout_width="match_parent"
29 android:layout_height="match_parent">
30
31 <android.support.v4.widget.SwipeRefreshLayout
32 android:id="@+id/swipe_containing_list"
33 android:layout_width="match_parent"
34 android:layout_height="match_parent"
35 android:footerDividersEnabled="false"
36 android:visibility="visible" >
37
38 <com.owncloud.android.ui.ExtendedListView
39 android:id="@+id/list_root"
40 android:layout_width="match_parent"
41 android:layout_height="match_parent"
42 android:divider="@color/list_divider_background"
43 android:dividerHeight="1px"
44 android:visibility="visible" />
45
46 </android.support.v4.widget.SwipeRefreshLayout>
47
48 <android.support.v4.widget.SwipeRefreshLayout
49 android:id="@+id/swipe_containing_grid"
50 android:layout_width="match_parent"
51 android:layout_height="match_parent"
52 android:layout_weight="1"
53 android:footerDividersEnabled="false"
54 android:visibility="gone" >
55
56 <third_parties.in.srain.cube.GridViewWithHeaderAndFooter
57 android:id="@+id/grid_root"
58 android:layout_width="match_parent"
59 android:layout_height="match_parent"
60 android:columnWidth="100dp"
61 android:gravity="center"
62 android:horizontalSpacing="2dp"
63 android:stretchMode="columnWidth"
64 android:verticalSpacing="2dp"
65 android:visibility="visible" />
66
67 </android.support.v4.widget.SwipeRefreshLayout>
68
69 <android.support.v4.widget.SwipeRefreshLayout
70 android:id="@+id/swipe_containing_empty"
71 android:layout_width="match_parent"
72 android:layout_height="match_parent"
73 android:visibility="gone" >
74 <ScrollView
75 android:layout_width="match_parent"
76 android:layout_height="match_parent" >
77 <TextView
78 android:id="@+id/empty_list_view"
79 android:layout_width="match_parent"
80 android:layout_height="wrap_content"
81 android:layout_gravity="center"
82 android:gravity="center_vertical|center_horizontal"
83 android:text="@string/empty"
84 android:visibility="visible" />
85 </ScrollView>
86 </android.support.v4.widget.SwipeRefreshLayout>
87
88 </FrameLayout>
89 <com.getbase.floatingactionbutton.FloatingActionsMenu
90 android:id="@+id/fab_main"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:layout_alignParentBottom="true"
94 android:layout_alignParentRight="true"
95 android:layout_alignParentEnd="true"
96 fab:fab_addButtonColorNormal="@color/owncloud_blue_accent"
97 fab:fab_addButtonColorPressed="@color/owncloud_blue"
98 fab:fab_addButtonPlusIconColor="@color/white"
99 fab:fab_labelStyle="@style/menu_labels_style"
100 android:layout_marginBottom="@dimen/standard_margin"
101 android:layout_marginRight="@dimen/standard_margin"
102 android:layout_marginEnd="@dimen/standard_margin"
103 android:visibility="gone">
104
105 <com.getbase.floatingactionbutton.FloatingActionButton
106 android:id="@+id/fab_upload"
107 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"
109 fab:fab_size="mini"
110 fab:fab_icon="@drawable/ic_action_upload"
111 fab:fab_colorNormal="@color/owncloud_blue_accent"
112 fab:fab_colorPressed="@color/owncloud_blue"
113 fab:fab_title=""/>
114
115 <com.getbase.floatingactionbutton.FloatingActionButton
116 android:id="@+id/fab_mkdir"
117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
119 fab:fab_size="mini"
120 fab:fab_icon="@drawable/ic_action_create_dir"
121 fab:fab_colorNormal="@color/owncloud_blue_accent"
122 fab:fab_colorPressed="@color/owncloud_blue"
123 fab:fab_title=""/>
124
125 <com.getbase.floatingactionbutton.FloatingActionButton
126 android:id="@+id/fab_upload_from_app"
127 android:layout_width="wrap_content"
128 android:layout_height="wrap_content"
129 fab:fab_size="mini"
130 fab:fab_icon="@drawable/ic_import"
131 fab:fab_colorNormal="@color/owncloud_blue_accent"
132 fab:fab_colorPressed="@color/owncloud_blue"
133 fab:fab_title=""/>
134
135 </com.getbase.floatingactionbutton.FloatingActionsMenu>
136 </RelativeLayout>