plattysoft / grid-with-header-list-adapter

Library and example of how to display a grid view with a header using a normal list view
39 stars 20 forks source link

Fixed view recycling bug #4

Closed HenriLangenhoven closed 9 years ago

HenriLangenhoven commented 9 years ago

Added getViewTypeCount() and getItemViewType() overrides so that two view types are available - one for full rows, and another for the last row with filler views. This prevents getItemView() sometimes being called for full rows with the wrong view type (and potential crashes if you expect the view to have a view holder in its tag for example).

plattysoft commented 9 years ago

Thanks!