emilsjolander/StickyListHeaders — pull request #52 by anton-novikau (2012-12-24 21:58:43+00:00)
Title: ListView choice mode support

To support AbsListView#CHOICE_MODE_SINGLE,
AbsListView#CHOICE_MODE_MULTIPLE or
AbsListView#CHOICE_MODE_MULTIPLE_MODAL convertView returned by Adapter's
getView() method must implement android.widget.Checkable interface.
Since SticklyListHeadersListView wraps all views of the original adapter
to WrapperView ListView can't notify checkable view from the original
adapter unless the wrapper will implement Checkable interface.

I suggest the following simple implementation of checkable support by
the WrapperView. I know that instanceof is pretty heavy operation, but
setChecked(boolean) called only when user clicks on the list item so maybe
you'll consider it acceptable for the first time.