turing-tech/MaterialScrollBar

SwipeRefreshLayout's circle disappears on scroll

PtiPingouin opened this issue · 5 comments

I have:

SwipeRefreshLayout {
    RelativeLayout {
        RecyclerView
    }
}

I'm creating the scrollbar programmatically. When I pull / refresh the layout, the refresh indicator appears. Then, as soon as I scroll down, it vanishes.

Are you scrolling with the bar or the recycelerView?

Both. The problem is in the scroll listener. You're calling this.swipeRefreshLayout.setEnabled(false), which resets the view (and hides it). Check out the implementation of SwipeRefreshLayout.setEnabled()

I see. Give me a sec to figure out a solution.

Get the new version 11.2.1 and it should be fixed.