net.simonvt.menudrawer.samples
Class MenuAdapter
java.lang.Object
android.widget.BaseAdapter
net.simonvt.menudrawer.samples.MenuAdapter
- All Implemented Interfaces:
- android.widget.Adapter, android.widget.ListAdapter, android.widget.SpinnerAdapter
public class MenuAdapter
- extends android.widget.BaseAdapter
| Fields inherited from interface android.widget.Adapter |
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
| Methods inherited from class android.widget.BaseAdapter |
getDropDownView, hasStableIds, isEmpty, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuAdapter
public MenuAdapter(android.content.Context context,
List<Object> items)
setListener
public void setListener(MenuAdapter.MenuListener listener)
setActivePosition
public void setActivePosition(int activePosition)
getCount
public int getCount()
getItem
public Object getItem(int position)
getItemId
public long getItemId(int position)
getItemViewType
public int getItemViewType(int position)
- Specified by:
getItemViewType in interface android.widget.Adapter- Overrides:
getItemViewType in class android.widget.BaseAdapter
getViewTypeCount
public int getViewTypeCount()
- Specified by:
getViewTypeCount in interface android.widget.Adapter- Overrides:
getViewTypeCount in class android.widget.BaseAdapter
isEnabled
public boolean isEnabled(int position)
- Specified by:
isEnabled in interface android.widget.ListAdapter- Overrides:
isEnabled in class android.widget.BaseAdapter
areAllItemsEnabled
public boolean areAllItemsEnabled()
- Specified by:
areAllItemsEnabled in interface android.widget.ListAdapter- Overrides:
areAllItemsEnabled in class android.widget.BaseAdapter
getView
public android.view.View getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
Copyright © 2012-2013. All Rights Reserved.