public T setBarThickness(final int thickness) {
        if(!attached) {
            onAttach.add(() -> setBarThickness(thickness));
            return (T) this;
        }
        LayoutParams layoutParams = (LayoutParams) handleThumb.getLayoutParams();
        layoutParams.width = thickness;
        handleThumb.setLayoutParams(layoutParams);

        layoutParams = (LayoutParams) handleTrack.getLayoutParams();
        layoutParams.width = thickness;
        handleTrack.setLayoutParams(layoutParams);

        if(indicator != null) {
            indicator.setSizeCustom(thickness);
        }

        layoutParams = (LayoutParams) getLayoutParams();
        layoutParams.width = thickness;
        setLayoutParams(layoutParams);

        return (T)this;
    }
Allows the developer to set a custom bar thickness.
@param thickness The desired bar thickness.
lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java