Changing Cursor In Cursoradapter Is Not Properly Updating List Item Views
This question is very similar to many other questions on StackOverflow, but I think it merits its own post due to a difference in approach compared to other questions here. I have
Solution 1:
I ended up figuring out the problem based upon this StackOverflow answer. I needed to override getItemTypeCount
and getItemViewType
on my adapter.
@Override
public int getItemViewType(int position) {
return getItem(position).isOwned() ? 1 : 0;
}
@Override
public int getViewTypeCount() {
return 2;
}
Post a Comment for "Changing Cursor In Cursoradapter Is Not Properly Updating List Item Views"