don't show labels all the time just during the first usage and application lifecycle...
[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:visibility="visible" />
43
44 </android.support.v4.widget.SwipeRefreshLayout>
45
46 <android.support.v4.widget.SwipeRefreshLayout
47 android:id="@+id/swipe_containing_grid"
48 android:layout_width="match_parent"
49 android:layout_height="match_parent"
50 android:layout_weight="1"
51 android:footerDividersEnabled="false"
52 android:visibility="gone" >
53
54 <third_parties.in.srain.cube.GridViewWithHeaderAndFooter
55 android:id="@+id/grid_root"
56 android:layout_width="match_parent"
57 android:layout_height="match_parent"
58 android:columnWidth="100dp"
59 android:gravity="center"
60 android:horizontalSpacing="2dp"
61 android:stretchMode="columnWidth"
62 android:verticalSpacing="2dp"
63 android:visibility="visible" />
64
65 </android.support.v4.widget.SwipeRefreshLayout>
66
67 <android.support.v4.widget.SwipeRefreshLayout
68 android:id="@+id/swipe_containing_empty"
69 android:layout_width="match_parent"
70 android:layout_height="match_parent"
71 android:visibility="gone" >
72 <ScrollView
73 android:layout_width="match_parent"
74 android:layout_height="match_parent" >
75 <TextView
76 android:id="@+id/empty_list_view"
77 android:layout_width="match_parent"
78 android:layout_height="wrap_content"
79 android:layout_gravity="center"
80 android:gravity="center_vertical|center_horizontal"
81 android:text="@string/empty"
82 android:visibility="visible" />
83 </ScrollView>
84 </android.support.v4.widget.SwipeRefreshLayout>
85
86 </FrameLayout>
87 <com.getbase.floatingactionbutton.FloatingActionsMenu
88 android:id="@+id/fab_main"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:layout_alignParentBottom="true"
92 android:layout_alignParentRight="true"
93 android:layout_alignParentEnd="true"
94 fab:fab_addButtonColorNormal="@color/owncloud_blue_accent"
95 fab:fab_addButtonColorPressed="@color/owncloud_blue"
96 fab:fab_addButtonPlusIconColor="@color/white"
97 fab:fab_labelStyle="@style/menu_labels_style"
98 android:layout_marginBottom="@dimen/standard_margin"
99 android:layout_marginRight="@dimen/standard_margin"
100 android:layout_marginEnd="@dimen/standard_margin">
101
102 <com.getbase.floatingactionbutton.FloatingActionButton
103 android:id="@+id/fab_upload"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 fab:fab_size="mini"
107 fab:fab_icon="@drawable/ic_action_upload"
108 fab:fab_colorNormal="@color/owncloud_blue_accent"
109 fab:fab_colorPressed="@color/owncloud_blue"
110 fab:fab_title=""/>
111
112 <com.getbase.floatingactionbutton.FloatingActionButton
113 android:id="@+id/fab_mkdir"
114 android:layout_width="wrap_content"
115 android:layout_height="wrap_content"
116 fab:fab_size="mini"
117 fab:fab_icon="@drawable/ic_action_create_dir"
118 fab:fab_colorNormal="@color/owncloud_blue_accent"
119 fab:fab_colorPressed="@color/owncloud_blue"
120 fab:fab_title=""/>
121
122 <com.getbase.floatingactionbutton.FloatingActionButton
123 android:id="@+id/fab_upload_from_app"
124 android:layout_width="wrap_content"
125 android:layout_height="wrap_content"
126 fab:fab_size="mini"
127 fab:fab_icon="@drawable/ic_import"
128 fab:fab_colorNormal="@color/owncloud_blue_accent"
129 fab:fab_colorPressed="@color/owncloud_blue"
130 fab:fab_title=""/>
131
132 </com.getbase.floatingactionbutton.FloatingActionsMenu>
133 </RelativeLayout>