How disable swiperefreshlayout when Recyclerview is not on the first item?
问题 My android project includes a recyclerView that contains a list of cardViews, and also there is a swipeRefreshLayout on the top of this recyclerView. When I scroll down the list and pull up those cardViews, I just want to disable swipeRefreshLayout. In other word, when RecyclerView is not on the first item, and if the user wants to scrolling back to first item, it must not show swipeRefreshLayout. I googled a lot about this issue and there are some solutions for this problem that overrides