Added in API level 1

SpinnerAdapter


interface SpinnerAdapter : Adapter
android.widget.SpinnerAdapter

Extended Adapter that is the bridge between a android.widget.Spinner and its data. A spinner adapter allows to define two different views: one that shows the data in the spinner itself and one that shows the data in the drop down list when the spinner is pressed.

Summary

Inherited constants
Public methods
abstract View!
getDropDownView(position: Int, convertView: View!, parent: ViewGroup!)

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

Inherited functions

Public methods

getDropDownView

Added in API level 1
abstract fun getDropDownView(
    position: Int,
    convertView: View!,
    parent: ViewGroup!
): View!

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

Parameters
position Int: 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
Return
View! a android.view.View corresponding to the data at the specified position.