Android7.0中文文档(API)-- BaseAdapter

来源:互联网 发布:火车票黄牛软件 编辑:程序博客网 时间:2024/06/02 05:06

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/BaseAdapter.html

BaseAdapter

public abstract class BaseAdapter
extends Object implements ListAdapter, SpinnerAdapter

java.lang.Object   ↳android.widget.BaseAdapter
已知的直接子类
已知的间接子类


Common base class of common implementation for an Adapter that can be used in bothListView (by implementing the specializedListAdapter interface) andSpinner (by implementing the specializedSpinnerAdapter interface).
用于ListView(通过实现专用的ListAdapter接口)和Spinner(通过实现专用的SpinnerAdapter接口)中的Adapter的公共实现的通用基类。

摘要


继承常量

From interface android.widget.Adapter

Public构造方法

BaseAdapter()

Public方法

booleanareAllItemsEnabled()

Indicates whether all the items in this adapter are enabled.
数组所有的项是否已使能。

ViewgetDropDownView(int position,View convertView, ViewGroup parent)

Gets a View that displays in the drop down popup the data at the specified position in the data set.
获取一个View,它将显示数据集中指定位置的数据。

intgetItemViewType(int position)

Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item.
获取视图的类型,将通过getView(int, View, ViewGroup),为指定的项创建视图。

intgetViewTypeCount()

Returns the number of types of Views that will be created by getView(int, View, ViewGroup).
返回视图类型的数量,将通过getView(int, View, ViewGroup),来创建视图。

原创粉丝点击