android.widget
Class SimpleExpandableListAdapter

java.lang.Object
  extended by android.widget.BaseExpandableListAdapter
      extended by android.widget.SimpleExpandableListAdapter
All Implemented Interfaces:
ExpandableListAdapter, HeterogeneousExpandableList

public class SimpleExpandableListAdapter
extends BaseExpandableListAdapter


Constructor Summary
SimpleExpandableListAdapter(Context context, List<? extends Map<String,?>> groupData, int expandedGroupLayout, int collapsedGroupLayout, String[] groupFrom, int[] groupTo, List<? extends List<? extends Map<String,?>>> childData, int childLayout, int lastChildLayout, String[] childFrom, int[] childTo)
           
SimpleExpandableListAdapter(Context context, List<? extends Map<String,?>> groupData, int expandedGroupLayout, int collapsedGroupLayout, String[] groupFrom, int[] groupTo, List<? extends List<? extends Map<String,?>>> childData, int childLayout, String[] childFrom, int[] childTo)
           
SimpleExpandableListAdapter(Context context, List<? extends Map<String,?>> groupData, int groupLayout, String[] groupFrom, int[] groupTo, List<? extends List<? extends Map<String,?>>> childData, int childLayout, String[] childFrom, int[] childTo)
           
 
Method Summary
 Object getChild(int groupPosition, int childPosition)
           
 long getChildId(int groupPosition, int childPosition)
           
 int getChildrenCount(int groupPosition)
           
 View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent)
           
 Object getGroup(int groupPosition)
           
 int getGroupCount()
           
 long getGroupId(int groupPosition)
           
 View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent)
           
 boolean hasStableIds()
           
 boolean isChildSelectable(int groupPosition, int childPosition)
           
 View newChildView(boolean isLastChild, ViewGroup parent)
           
 View newGroupView(boolean isExpanded, ViewGroup parent)
           
 
Methods inherited from class android.widget.BaseExpandableListAdapter
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, notifyDataSetChanged, notifyDataSetInvalidated, onGroupCollapsed, onGroupExpanded, registerDataSetObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleExpandableListAdapter

public SimpleExpandableListAdapter(Context context,
                                   List<? extends Map<String,?>> groupData,
                                   int groupLayout,
                                   String[] groupFrom,
                                   int[] groupTo,
                                   List<? extends List<? extends Map<String,?>>> childData,
                                   int childLayout,
                                   String[] childFrom,
                                   int[] childTo)

SimpleExpandableListAdapter

public SimpleExpandableListAdapter(Context context,
                                   List<? extends Map<String,?>> groupData,
                                   int expandedGroupLayout,
                                   int collapsedGroupLayout,
                                   String[] groupFrom,
                                   int[] groupTo,
                                   List<? extends List<? extends Map<String,?>>> childData,
                                   int childLayout,
                                   String[] childFrom,
                                   int[] childTo)

SimpleExpandableListAdapter

public SimpleExpandableListAdapter(Context context,
                                   List<? extends Map<String,?>> groupData,
                                   int expandedGroupLayout,
                                   int collapsedGroupLayout,
                                   String[] groupFrom,
                                   int[] groupTo,
                                   List<? extends List<? extends Map<String,?>>> childData,
                                   int childLayout,
                                   int lastChildLayout,
                                   String[] childFrom,
                                   int[] childTo)
Method Detail

getChild

public Object getChild(int groupPosition,
                       int childPosition)

getChildId

public long getChildId(int groupPosition,
                       int childPosition)

getChildView

public View getChildView(int groupPosition,
                         int childPosition,
                         boolean isLastChild,
                         View convertView,
                         ViewGroup parent)

newChildView

public View newChildView(boolean isLastChild,
                         ViewGroup parent)

getChildrenCount

public int getChildrenCount(int groupPosition)

getGroup

public Object getGroup(int groupPosition)

getGroupCount

public int getGroupCount()

getGroupId

public long getGroupId(int groupPosition)

getGroupView

public View getGroupView(int groupPosition,
                         boolean isExpanded,
                         View convertView,
                         ViewGroup parent)

newGroupView

public View newGroupView(boolean isExpanded,
                         ViewGroup parent)

isChildSelectable

public boolean isChildSelectable(int groupPosition,
                                 int childPosition)

hasStableIds

public boolean hasStableIds()


Copyright © 2008-2010. All Rights Reserved.