umano / MultiItemRowListAdapter

MultiItemRowListAdapter
Apache License 2.0
357 stars 103 forks source link

MultiItemRowListAdapter works wrong with more then 1 item type. #8

Open Lingviston opened 9 years ago

Lingviston commented 9 years ago

I have custom adapter which wrapped by MultiItemRowListAdapter. Is has overrriden getViewTypeCount and getItemViewType methods (I have 2 different layout). After list displayed at first all items displayed correctly but after I scroll it - layout's displayed incorrectly (I have layout-2 for items which must have layout-1 and vice versa).

Lingviston commented 9 years ago

THis seems to be caused by incorrect implementation of getItemViewType and getViewTYpeCount in MultiItemRowListAdapter. It must NOT return the same values as wrapped adapter.

Lingviston commented 9 years ago

getView method of MultiItemRowListAdapter also doesn't work fine with several view types. I'll have to fix it somehow.

aandis commented 9 years ago

Any updates on this?