Most visited

Recently visited

Added in API level 1

SpinnerAdapter

public interface SpinnerAdapter
implements Adapter

android.widget.SpinnerAdapter
Known Indirect Subclasses


扩展Adapter ,这是Spinner及其数据之间的桥梁。 微调适配器允许定义两个不同的视图:一个显示微调器本身的数据,另一个显示按下微调器时下拉列表中的数据。

Summary

Inherited constants

From interface android.widget.Adapter

Public methods

abstract View getDropDownView(int position, View convertView, ViewGroup parent)

获取一个 View ,它在下拉式弹出 View中显示数据集中指定位置的数据。

Inherited methods

From interface android.widget.Adapter

Public methods

getDropDownView

Added in API level 1
View getDropDownView (int position, 
                View convertView, 
                ViewGroup parent)

获取一个 View ,它在下拉式弹出 View中显示数据集中指定位置的数据。

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
Returns
View a View corresponding to the data at the specified position.

Hooray!