fragment_home_goods.xml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:focusable="true"
  6. android:focusableInTouchMode="true"
  7. android:descendantFocusability="blocksDescendants">
  8. <!--todo RecyclerView还是会自动获取焦点-->
  9. <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12. <!--去掉下拉阴影android:overScrollMode="never"-->
  13. <androidx.recyclerview.widget.RecyclerView
  14. android:overScrollMode="never"
  15. android:id="@+id/rv_goods"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"/>
  18. </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
  19. <ImageView
  20. android:id="@+id/iv_empty"
  21. android:layout_width="@dimen/size_image_big"
  22. android:layout_height="@dimen/size_image_big"
  23. android:scaleType="fitXY"
  24. android:src="@mipmap/logo_gray"
  25. android:layout_gravity="center"
  26. android:tint="@color/gray_text_hint"
  27. android:visibility="gone"/>
  28. </FrameLayout>