turing-tech / MaterialScrollBar

An Android library that brings the Material Design 5.1 sidebar to pre-5.1 devices.
Apache License 2.0
779 stars 126 forks source link

SwipeRefreshLayout's circle disappears on scroll #72

Closed PtiPingouin closed 7 years ago

PtiPingouin commented 7 years ago

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.

turing-tech commented 7 years ago

Are you scrolling with the bar or the recycelerView?

PtiPingouin commented 7 years ago

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()

turing-tech commented 7 years ago

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

turing-tech commented 7 years ago

Get the new version 11.2.1 and it should be fixed.

PtiPingouin commented 7 years ago

Thanks. I'll give it a try tomorrow.

On Thu, Dec 8, 2016 at 8:19 PM, Turing Technologies < notifications@github.com> wrote:

Get the new version 11.2.1 and it should be fixed.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/turing-tech/MaterialScrollBar/issues/72#issuecomment-265829117, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2BLHsaspWvBmYjAZGTEX8cNOiyim_Nks5rGFhUgaJpZM4LIA61 .