Share via


ISpinnerAdapter.GetDropDownView(Int32, View, ViewGroup) Method

Definition

Gets a android.view.View that displays in the drop down popup the data at the specified position in the data set.

[Android.Runtime.Register("getDropDownView", "(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;", "GetGetDropDownView_ILandroid_view_View_Landroid_view_ViewGroup_Handler:Android.Widget.ISpinnerAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.View? GetDropDownView (int position, Android.Views.View? convertView, Android.Views.ViewGroup? parent);
[<Android.Runtime.Register("getDropDownView", "(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;", "GetGetDropDownView_ILandroid_view_View_Landroid_view_ViewGroup_Handler:Android.Widget.ISpinnerAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDropDownView : int * Android.Views.View * Android.Views.ViewGroup -> Android.Views.View

Parameters

position
Int32

index of the item whose view we want.

convertView
View

the old view to reuse, if possible. Note: You should check that this view is non-null and of an appropriate type before using. If it is not possible to convert this view to display the correct data, this method can create a new view.

parent
ViewGroup

the parent that this view will eventually be attached to

Returns

a android.view.View corresponding to the data at the specified position.

Attributes

Remarks

Gets a android.view.View that displays in the drop down popup the data at the specified position in the data set.

Java documentation for android.widget.SpinnerAdapter.getDropDownView(int, android.view.View, android.view.ViewGroup).

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