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

Removing items from adapter does not hide scrollbar #105

Closed kasual1 closed 6 years ago

kasual1 commented 7 years ago

When I add items to my adapter, the scrollbar starts to appear as soon as there are enough items in the list. This works perfectly fine, but when I start removing items from this list the scrollbar should disappear as soon as there are too less items. Is there a method that I could call when I delete an item, so that it checks if the list is long enough? (I guess there should be something in there already, because when I change orientation it then detects that the list is too short and hides the scrollbar)

Thanks in advance, greate work :)

turing-tech commented 6 years ago

Thanks for the heads-up! I appreciate the help :)