recycler-fast-scroll
recycler-fast-scroll copied to clipboard
Scrollbar Visibility
How to make scrollbar all time visible Now the visibility appears after scrolling
You will have to use custom view: https://github.com/FutureMind/recycler-fast-scroll#custom-views.
Implement the custom view, as suggested, then in CustomScrollerViewProvider.provideHandleView() you can set the handle to be visible immediately, i.e. without having to touch the screen:
handle.setVisibility(View.VISIBLE);
I haven't figured out how to make the handle permanently display yet. A kluge is to use withHideDelay() with a really long time:
@Override
protected ViewBehavior provideHandleBehavior() {
VisibilityAnimationManager visibilityAnimationManager = new VisibilityAnimationManager.Builder(handle)
.withHideDelay(1000000)
.build();
CustomHandleBehavior.HandleAnimationManager handleAnimationManager = new CustomHandleBehavior.HandleAnimationManager.Builder(handle)
.withGrabAnimator(R.animator.custom_grab)
.withReleaseAnimator(R.animator.custom_release)
.build();
return new CustomHandleBehavior(visibilityAnimationManager, handleAnimationManager);
}