public int getItemViewType (int position)

Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item.
Parameters
position The position of the item within the adapter’s data set whose view type we want.
Returns
An integer representing the type of View. Two views should share the same type if one can be converted to the other in getView(int, View, ViewGroup). Note: Integers must be in the range 0 to getViewTypeCount() - 1. IGNORE_ITEM_VIEW_TYPE can also be returned.