Example usage for android.widget AdapterView ITEM_VIEW_TYPE_IGNORE

List of usage examples for android.widget AdapterView ITEM_VIEW_TYPE_IGNORE

Introduction

In this page you can find the example usage for android.widget AdapterView ITEM_VIEW_TYPE_IGNORE.

Prototype

int ITEM_VIEW_TYPE_IGNORE

To view the source code for android.widget AdapterView ITEM_VIEW_TYPE_IGNORE.

Click Source Link

Document

The item view type returned by Adapter#getItemViewType(int) when the adapter does not want the item's view recycled.

Usage

From source file:com.google.android.feeds.ContentDecorator.java

/** {@inheritDoc} */
public int getItemViewType(int position) {
    if (isItem(position)) {
        return mAdapter.getItemViewType(position);
    } else {/*from   w ww.jav a2  s . c  o m*/
        return AdapterView.ITEM_VIEW_TYPE_IGNORE;
    }
}