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

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

HeaderViewListAdapter

public class HeaderViewListAdapter
extends Object implements WrapperListAdapter, Filterable

java.lang.Object
   ↳android.widget.HeaderViewListAdapter


ListAdapter used when a ListView has header views. This ListAdapter wraps another one and also keeps track of the header views and their associated data objects.
ListAdapter在一个列表视图有页眉视图时使用。这个ListAdapter包装另一个并跟踪页面视图及其相关的数据对象。

This is intended as a base class; you will probably not need to use this class directly in your own code.
它是作为一个基类的;你可能不需要在自己的代码中直接使用这个类。

摘要


继承常量

From interface android.widget.Adapter

Public构造方法

HeaderViewListAdapter(ArrayList<ListView.FixedViewInfo> headerViewInfos, ArrayList<ListView.FixedViewInfo> footerViewInfos, ListAdapter adapter)

Public方法

booleanareAllItemsEnabled()

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

intgetCount()

How many items are in the data set represented by this Adapter.
这个Adapter的数据集中有多少项。

FiltergetFilter()

Returns a filter that can be used to constrain data with a filtering pattern.
返回一个过滤器,该过滤器可以使用过滤模式来约束数据。

intgetFootersCount()
intgetHeadersCount()
ObjectgetItem(int position)

Get the data item associated with the specified position in the data set.
获取数据集中指定位置相关联的数据项。

longgetItemId(int position)

Get the row id associated with the specified position in the list.
获取列表中指定位置相关联的行ID。

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),为指定的项创建视图。

ViewgetView(int position, View convertView, ViewGroup parent)

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

intgetViewTypeCount()

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

ListAdaptergetWrappedAdapter()

Returns the adapter wrapped by this list adapter.
返回由该列表适配器包装的适配器。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值