turing-tech / MaterialScrollBar

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

setScrollBarHidden(true) does not work #106

Open silent10 opened 7 years ago

silent10 commented 7 years ago

setScrollBarHidden(true) does not work and the scroll bar is still visibile.

turing-tech commented 6 years ago

Unable to replicate. Please provide more information about what flavor of bar you are using and the steps to reproduce.

behlsoft commented 6 years ago

scrollbar and handle still visible. i want it visible or invisible condition based. setscrollBarHidden(true) stops the functionality but no effect on visibility.

behlsoft commented 6 years ago

I did go through your code in commit and found that you can make your 'handleTrack' and 'handleThumb' public or make getter setter for that so that we can make it visible or invisible accordingly. You did this when you need to hide scrollbar and thumb if items are less.