public class ImageExpandableListAdapter extends SimpleExpandableListAdapter
Modifier and Type | Field and Description |
---|---|
private ArrayList<ArrayList<HashMap<String,Object>>> |
childData |
(package private) Context |
context |
private ArrayList<HashMap<String,Object>> |
groupData |
private String |
IMAGE |
private LayoutInflater |
layoutInflater |
private String |
NAME |
Constructor and Description |
---|
ImageExpandableListAdapter(Context context,
ArrayList<HashMap<String,Object>> groupData,
int expandedGroupLayout,
String[] groupFrom,
int[] groupTo,
ArrayList<ArrayList<HashMap<String,Object>>> childData,
int childLayout,
String[] childFrom,
int[] childTo) |
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(int groupPosition,
int childPosition,
HashMap<String,Object> child) |
boolean |
addGroup(int groupPosition,
HashMap<String,Object> group,
ArrayList<HashMap<String,Object>> childs) |
View |
getChildView(int groupPosition,
int childPosition,
boolean isLastChild,
View convertView,
ViewGroup parent) |
View |
getGroupView(int groupPosition,
boolean isExpanded,
View convertView,
ViewGroup parent) |
View |
newChildView(boolean isLastChild,
ViewGroup parent) |
View |
newGroupView(boolean isExpanded,
ViewGroup parent) |
boolean |
removeChild(int groupPosition,
int childPosition)
Removes the child which located at childPosition under the group located at groupPosition.
|
boolean |
removeGroup(int groupPosition) |
getChild, getChildId, getChildrenCount, getGroup, getGroupCount, getGroupId, hasStableIds, isChildSelectable
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, notifyDataSetChanged, notifyDataSetInvalidated, onGroupCollapsed, onGroupExpanded, registerDataSetObserver, unregisterDataSetObserver
private final String NAME
private final String IMAGE
private final LayoutInflater layoutInflater
Context context
public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent)
getGroupView
in interface ExpandableListAdapter
getGroupView
in class SimpleExpandableListAdapter
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent)
getChildView
in interface ExpandableListAdapter
getChildView
in class SimpleExpandableListAdapter
public View newGroupView(boolean isExpanded, ViewGroup parent)
newGroupView
in class SimpleExpandableListAdapter
public View newChildView(boolean isLastChild, ViewGroup parent)
newChildView
in class SimpleExpandableListAdapter
public boolean removeChild(int groupPosition, int childPosition)
groupPosition
- childPosition
- public boolean addChild(int groupPosition, int childPosition, HashMap<String,Object> child)
public boolean addGroup(int groupPosition, HashMap<String,Object> group, ArrayList<HashMap<String,Object>> childs)
public boolean removeGroup(int groupPosition)