AdapterView.GetPositionForView(View) AdapterView.GetPositionForView(View) Method


Get the position within the adapter's data set for the view, where view is a an adapter item or a descendant of an adapter item.

[Android.Runtime.Register("getPositionForView", "(Landroid/view/View;)I", "GetGetPositionForView_Landroid_view_View_Handler")]
public virtual int GetPositionForView (Android.Views.View view);
abstract member GetPositionForView : Android.Views.View -> int
override this.GetPositionForView : Android.Views.View -> int


View View

an adapter item, or a descendant of an adapter item. This must be visible in this AdapterView at the time of the call.



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