Mehdi Esmaeili
- Forum posts: 1
Apr 12, 2015, 6:07:50 PM via Website
Apr 12, 2015 6:07:50 PM via Website
I use IGNORE_ITEM_VIEW_TYPE in getItemViewType(int) methode in custom cursor adapter, but it does not worked.
My Code:
@Override
public int getItemViewType(int position) {
if(deleteListPosition.contains(position)) {
return IGNORE_ITEM_VIEW_TYPE;
}
return super.getItemViewType(position);
}
How does it work?
Do IGNORE_ITEM_VIEW_TYPE should be check in newView or bindView ?
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.