emilsjolander/StickyListHeaders — pull request #39 by JakeWharton (2012-11-21 19:57:48+00:00)
Title: Abstract implementation details inside a wrapper adapter.

Previously, the `StickyListHeadersListView` made the assumption that all children
would be `WrapperView`s. While this would hold true in practice, theoretically you
were not forced to use one of the supplied base adapters and thus could get runtime
`ClassCastException`s.

This change now hides all implementation details of how the list view actually
operates by wrapping the supplied adapter in one which does the work of creating
`WrapperView` instances behind-the-scenes. Because of this, any adapter implementing
`StickyListHeadersAdapter` can now be used.

As an added benifit we also trim down `StickyListHeadersAdapter`'s API.