1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   3   ownCloud Android client application
 
   5   Copyright (C) 
2012  Bartek Przybylski
 
   6   Copyright (C) 
2015 ownCloud Inc.
 
   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.
 
  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.
 
  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
/>.
 
  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"> 
  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"> 
  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" > 
  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" /> 
  44     </android.support.v4.widget.SwipeRefreshLayout
> 
  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" > 
  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" /> 
  65     </android.support.v4.widget.SwipeRefreshLayout
> 
  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" > 
  73                 android:
layout_width=
"match_parent" 
  74                 android:
layout_height=
"match_parent" > 
  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" /> 
  84     </android.support.v4.widget.SwipeRefreshLayout
> 
  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         android:
visibility=
"gone"> 
 103         <com.getbase.floatingactionbutton.FloatingActionButton
 
 104             android:
id=
"@+id/fab_upload" 
 105             android:
layout_width=
"wrap_content" 
 106             android:
layout_height=
"wrap_content" 
 108             fab:
fab_icon=
"@drawable/ic_action_upload" 
 109             fab:
fab_colorNormal=
"@color/owncloud_blue_accent" 
 110             fab:
fab_colorPressed=
"@color/owncloud_blue" 
 113         <com.getbase.floatingactionbutton.FloatingActionButton
 
 114             android:
id=
"@+id/fab_mkdir" 
 115             android:
layout_width=
"wrap_content" 
 116             android:
layout_height=
"wrap_content" 
 118             fab:
fab_icon=
"@drawable/ic_action_create_dir" 
 119             fab:
fab_colorNormal=
"@color/owncloud_blue_accent" 
 120             fab:
fab_colorPressed=
"@color/owncloud_blue" 
 123         <com.getbase.floatingactionbutton.FloatingActionButton
 
 124             android:
id=
"@+id/fab_upload_from_app" 
 125             android:
layout_width=
"wrap_content" 
 126             android:
layout_height=
"wrap_content" 
 128             fab:
fab_icon=
"@drawable/ic_import" 
 129             fab:
fab_colorNormal=
"@color/owncloud_blue_accent" 
 130             fab:
fab_colorPressed=
"@color/owncloud_blue" 
 133     </com.getbase.floatingactionbutton.FloatingActionsMenu
>