Closed scompt closed 11 years ago
That all being said, I don't use headers/footers in my app. All I can say is that it compiles and works for my use case.
Thanks for finding this.
I was just googling for a solution to this issue and as well as references to how it was fixed in similar libraries I came across this. Thanks for already having a fix for this :D
Enabling fast scrolling on a
DragSortListView
will result in an exception:The
FastScroller
is expecting the list adapter to be an instance ofBaseAdapter
, which isn't the case because theDragSortListView
wraps it in the innerAdapterWrapper
class, which extendsHeaderViewListAdapter
, which itself isn't related toBaseAdapter
. From what I can tell, this was only done because it handles some of the delegation to the wrapped class; the header/footer behavior that it also provides isn't used.This pull request refactors
AdapterWrapper
to extendsBaseAdapter
by changing the class definition and delegating all of the necessary methods. It's loosely based on theAdapterWrapper
from @commonsguy. An alternative might be to include thecwac-adapter
project as a dependency and extend fromAdapterWrapper
.