完整内容,请查看: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方法 | |
---|---|
boolean | areAllItemsEnabled() Indicates whether all the items in this adapter are enabled. |
int | getCount() How many items are in the data set represented by this Adapter. |
Filter | getFilter() Returns a filter that can be used to constrain data with a filtering pattern. |
int | getFootersCount() |
int | getHeadersCount() |
Object | getItem(int position) Get the data item associated with the specified position in the data set. |
long | getItemId(int position) Get the row id associated with the specified position in the list. |
int | getItemViewType(int position) Get the type of View that will be created by |
View | getView(int position, View convertView, ViewGroup parent) Get a View that displays the data at the specified position in the data set. |
int | getViewTypeCount() Returns the number of types of Views that will be created by |
ListAdapter | getWrappedAdapter() Returns the adapter wrapped by this list adapter. |