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

完整内容,请查看: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 both ListView (by implementing the specialized ListAdapter interface) and Spinner (by implementing the specialized SpinnerAdapter 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),来创建视图。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值