浏览代码

Merge pull request #10974 from nextcloud/fix/refresh-empty-folder

List fragments: Add empty list as a child of SwipeRefreshLayout, not outside it.
Álvaro Brey 2 年之前
父节点
当前提交
8f3d3771df
共有 1 个文件被更改,包括 10 次插入9 次删除
  1. 10 9
      app/src/main/res/layout/list_fragment.xml

+ 10 - 9
app/src/main/res/layout/list_fragment.xml

@@ -29,15 +29,16 @@
         android:footerDividersEnabled="false"
         android:footerDividersEnabled="false"
         android:visibility="visible"
         android:visibility="visible"
         app:layout_behavior="@string/appbar_scrolling_view_behavior">
         app:layout_behavior="@string/appbar_scrolling_view_behavior">
-
-        <com.owncloud.android.ui.EmptyRecyclerView
-            android:id="@+id/list_root"
+        <FrameLayout
             android:layout_width="match_parent"
             android:layout_width="match_parent"
-            android:layout_height="match_parent" />
+            android:layout_height="match_parent">
+            <com.owncloud.android.ui.EmptyRecyclerView
+                android:id="@+id/list_root"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent" />
+            <include
+                android:id="@+id/empty_list"
+                layout="@layout/empty_list" />
+        </FrameLayout>
     </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
     </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
-
-    <include
-        android:id="@+id/empty_list"
-        layout="@layout/empty_list" />
-
 </RelativeLayout>
 </RelativeLayout>