Merge pull request #1088 from owncloud/updated_docs_about_target_of_PRs
[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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 xmlns:tools="http://schemas.android.com/tools"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
24 android:layout_weight="1" >
25
26 <android.support.v4.widget.SwipeRefreshLayout
27 android:id="@+id/swipe_containing_list"
28 android:layout_width="match_parent"
29 android:layout_height="match_parent"
30 android:layout_weight="1"
31 android:footerDividersEnabled="false"
32 android:visibility="visible" >
33
34 <com.owncloud.android.ui.ExtendedListView
35 android:id="@+id/list_root"
36 android:layout_width="match_parent"
37 android:layout_height="match_parent"
38 android:visibility="visible" />
39
40 </android.support.v4.widget.SwipeRefreshLayout>
41
42 <android.support.v4.widget.SwipeRefreshLayout
43 android:id="@+id/swipe_containing_grid"
44 android:layout_width="match_parent"
45 android:layout_height="match_parent"
46 android:layout_weight="1"
47 android:footerDividersEnabled="false"
48 android:visibility="gone" >
49
50 <third_parties.in.srain.cube.GridViewWithHeaderAndFooter
51 android:id="@+id/grid_root"
52 android:layout_width="match_parent"
53 android:layout_height="match_parent"
54 android:columnWidth="100dp"
55 android:gravity="center"
56 android:horizontalSpacing="2dp"
57 android:stretchMode="columnWidth"
58 android:verticalSpacing="2dp"
59 android:visibility="visible" />
60
61 </android.support.v4.widget.SwipeRefreshLayout>
62
63 <android.support.v4.widget.SwipeRefreshLayout
64 android:id="@+id/swipe_containing_empty"
65 android:layout_width="match_parent"
66 android:layout_height="match_parent"
67 android:visibility="gone" >
68 <ScrollView
69 android:layout_width="match_parent"
70 android:layout_height="match_parent" >
71 <TextView
72 android:id="@+id/empty_list_view"
73 android:layout_width="match_parent"
74 android:layout_height="wrap_content"
75 android:layout_gravity="center"
76 android:gravity="center_vertical|center_horizontal"
77 android:text="@string/empty"
78 android:visibility="visible" />
79 </ScrollView>
80 </android.support.v4.widget.SwipeRefreshLayout>
81
82 </FrameLayout>