How to use RecyclerView inside NestedScrollView

后端 未结 8 856
梦如初夏
梦如初夏 2021-01-19 05:47

I have this layout:

 

        
相关标签:
8条回答
  • 2021-01-19 06:12

    That may be a chance you loading images(static) in to ImageView can be slow your recyclerView.

    Or Big size of image.

    Try to run application on mobile have good size of RAM

    0 讨论(0)
  • 2021-01-19 06:20

    Add fillViewport is true in NestedScrollView in xml file as below:

    <android.support.v4.widget.NestedScrollView
                android:id="@+id/nestedScrollView"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:fillViewport="true"
                android:scrollbars="none">
    

    And In your activity setNested scrolling false as below code

    recycler_view.setNestedScrollingEnabled(false);
    
    0 讨论(0)
提交回复
热议问题