turing-tech / MaterialScrollBar

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

setHandleColour not working properly #94

Closed MFlisar closed 7 years ago

MFlisar commented 7 years ago

Overwriting the color defined in xml directly after inflating the layout like following does not work:

scrollBar.setHandleColour(customColor);

Seems like it is somehow later overwritten again... Posting the setHandleColour to the view works though but I think the scrollbar should respect the custom color no matter when it is set.

I've not fully checked it but it may be overwritten in the setUpHandle function...

turing-tech commented 7 years ago

I'll take a look right now.

turing-tech commented 7 years ago

Should now be fixed.