list_fragment_expandable.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This must be a clone of list_fragment.xml
  4. EXCEPT: ExpandableListView must be used for @+id/swipe_refresh_files_emptyView
  5. -->
  6. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7. android:layout_width="0dp"
  8. android:layout_height="match_parent"
  9. android:layout_weight="1" >
  10. <android.support.v4.widget.SwipeRefreshLayout
  11. android:id="@+id/swipe_refresh_files"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent" >
  14. <ExpandableListView
  15. android:id="@+id/list_root"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent" />
  18. </android.support.v4.widget.SwipeRefreshLayout>
  19. <android.support.v4.widget.SwipeRefreshLayout
  20. android:id="@+id/swipe_refresh_files_emptyView"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:visibility="gone" >
  24. <ScrollView
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent" >
  27. <TextView
  28. android:id="@+id/empty_list_view"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:gravity="center_vertical|center_horizontal"
  32. android:text="@string/empty"
  33. android:layout_gravity="center"
  34. android:visibility="visible" />
  35. </ScrollView>
  36. </android.support.v4.widget.SwipeRefreshLayout>
  37. </FrameLayout>