private void checkCustomScrolling() {
        if(ViewCompat.isAttachedToWindow(this)) {
            checkCustomScrollingInterface();
        } else {
            addOnLayoutChangeListener(new OnLayoutChangeListener() {
                @Override
                public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
                    MaterialScrollBar.this.removeOnLayoutChangeListener(this);
                    checkCustomScrollingInterface();
                }
            });
        }
    }
The scrollBar should attempt to use dev provided scrolling logic and not default logic.

The adapter must implement {@link ICustomScroller}.
lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java