IAdapter.GetItemViewType(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the type of View that will be created by #getView
for the specified item.
[Android.Runtime.Register("getItemViewType", "(I)I", "GetGetItemViewType_IHandler:Android.Widget.IAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetItemViewType (int position);
[<Android.Runtime.Register("getItemViewType", "(I)I", "GetGetItemViewType_IHandler:Android.Widget.IAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetItemViewType : int -> int
Parameters
- position
- Int32
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
. Note: Integers must be in the
range 0 to #getViewTypeCount
- 1. #IGNORE_ITEM_VIEW_TYPE
can
also be returned.
- Attributes
Remarks
Get the type of View that will be created by #getView
for the specified item.
Java documentation for android.widget.Adapter.getItemViewType(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.