When I am scrolling up SwipeRefreshLayout refreshing my app

前端 未结 3 1961
一个人的身影
一个人的身影 2021-01-05 06:29

I am created an app that downloaded some data from internet and show them in a list using recyclerView.So I added SwipeRefreshLayout so that when user is at the beginning of

3条回答
  •  感情败类
    2021-01-05 06:39

    I think you have implemented SwipeRefreshLayout to whole layout itself. This is not the correct way to implement SwipeRefreshLayout. You should wrap SwipeRefreshLayout to just your RecyclerView, instead of whole layout.

    Like below:

    
        
    
    

提交回复
热议问题