共用方式為


BaseAdapter.GetItemViewType(Int32) Method

Definition

Get the type of View that will be created by View for the specified item.

[Android.Runtime.Register("getItemViewType", "(I)I", "GetGetItemViewType_IHandler")]
public virtual int GetItemViewType (int position);
[<Android.Runtime.Register("getItemViewType", "(I)I", "GetGetItemViewType_IHandler")>]
abstract member GetItemViewType : int -> int
override this.GetItemViewType : int -> int

Parameters

position
Int32

The position of the item within the adapter's data set whose view type we want.

Returns

Implements

Attributes

Remarks

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.

Applies to