nextcloud-android/res/layout/list_fragment_expandable.xml
Luke Owncloud 37d3a72960 add ExpandableListFragment which is inherits from ExtendedListFragment
Only difference: it uses an ExpandableListView which supports dividing list into groups
2014-11-27 11:56:24 +01:00

45 lines
1.5 KiB
XML
Executable file

<?xml version="1.0" encoding="utf-8"?>
<!--
This must be a clone of list_fragment.xml
EXCEPT: ExpandableListView must be used for @+id/swipe_refresh_files_emptyView
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" >
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_refresh_files"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ExpandableListView
android:id="@+id/list_root"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_refresh_files_emptyView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" >
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/empty_list_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|center_horizontal"
android:text="@string/empty"
android:layout_gravity="center"
android:visibility="visible" />
</ScrollView>
</android.support.v4.widget.SwipeRefreshLayout>
</FrameLayout>