android.widget
Class HeaderViewListAdapter

java.lang.Object
  extended by android.widget.HeaderViewListAdapter
All Implemented Interfaces:
Adapter, Filterable, ListAdapter, WrapperListAdapter

public class HeaderViewListAdapter
extends Object
implements WrapperListAdapter, Filterable


Field Summary
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Constructor Summary
HeaderViewListAdapter(ArrayList<ListView.FixedViewInfo> headerViewInfos, ArrayList<ListView.FixedViewInfo> footerViewInfos, ListAdapter adapter)
           
 
Method Summary
 boolean areAllItemsEnabled()
           
 int getCount()
           
 Filter getFilter()
           
 int getFootersCount()
           
 int getHeadersCount()
           
 Object getItem(int position)
           
 long getItemId(int position)
           
 int getItemViewType(int position)
           
 View getView(int position, View convertView, ViewGroup parent)
           
 int getViewTypeCount()
           
 ListAdapter getWrappedAdapter()
           
 boolean hasStableIds()
           
 boolean isEmpty()
           
 boolean isEnabled(int position)
           
 void registerDataSetObserver(DataSetObserver observer)
           
 boolean removeFooter(View v)
           
 boolean removeHeader(View v)
           
 void unregisterDataSetObserver(DataSetObserver observer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderViewListAdapter

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

getHeadersCount

public int getHeadersCount()

getFootersCount

public int getFootersCount()

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Adapter

removeHeader

public boolean removeHeader(View v)

removeFooter

public boolean removeFooter(View v)

getCount

public int getCount()
Specified by:
getCount in interface Adapter

areAllItemsEnabled

public boolean areAllItemsEnabled()
Specified by:
areAllItemsEnabled in interface ListAdapter

isEnabled

public boolean isEnabled(int position)
Specified by:
isEnabled in interface ListAdapter

getItem

public Object getItem(int position)
Specified by:
getItem in interface Adapter

getItemId

public long getItemId(int position)
Specified by:
getItemId in interface Adapter

hasStableIds

public boolean hasStableIds()
Specified by:
hasStableIds in interface Adapter

getView

public View getView(int position,
                    View convertView,
                    ViewGroup parent)
Specified by:
getView in interface Adapter

getItemViewType

public int getItemViewType(int position)
Specified by:
getItemViewType in interface Adapter

getViewTypeCount

public int getViewTypeCount()
Specified by:
getViewTypeCount in interface Adapter

registerDataSetObserver

public void registerDataSetObserver(DataSetObserver observer)
Specified by:
registerDataSetObserver in interface Adapter

unregisterDataSetObserver

public void unregisterDataSetObserver(DataSetObserver observer)
Specified by:
unregisterDataSetObserver in interface Adapter

getFilter

public Filter getFilter()
Specified by:
getFilter in interface Filterable

getWrappedAdapter

public ListAdapter getWrappedAdapter()
Specified by:
getWrappedAdapter in interface WrapperListAdapter


Copyright © 2008-2012. All Rights Reserved.