• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps IGNORE_ITEM_VIEW_TYPE not worked in custom cursor adapter

I use IGNORE_ITEM_VIEW_TYPE in getItemViewType(int) methode in custom cursor adapter, but it does not worked.

My Code:

@override
publicint 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 ?
 
Back
Top Bottom