Dynamic Endless RecyclerView scrolling issues

前端 未结 2 1979
一个人的身影
一个人的身影 2021-02-14 01:48

I have to create following layout

So far, I have successfully created the layout and populated all views. However, I am facing problem in the making ReyclerView Endless

2条回答
  •  悲&欢浪女
    2021-02-14 02:39

    There seems to be a similar discussion here: ViewPager in a NestedScrollView Maybe the sample of the Naruto guy (https://github.com/TheLittleNaruto/SupportDesignExample/) could solve your situation.

    Edit

    I'm not sure if I'm getting the point of your question. Anyway here you can a possible solution to your situation.

    
    
    
    
    
    ---- include here everything before the pager ----
    
    
    ---- this is your pager
    
    
    
    

    Then you can just listen to the RecycleView in the pager to add items as the RecycleView scrolls to bottom.

    I hope it helped

提交回复
热议问题