public GenericExpandableListAdapter(Context context,T[] items,int expandedGroupLayout,int collapsedGroupLayout,String searchableProperty,String[] groupFrom,int[] groupTo,int childLayout,int lastChildLayout,String[] childFrom,int[] childTo,int indicatorId){
  inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  this.allItems=items;
  this.expandedGroupLayout=expandedGroupLayout;
  this.collapsedGroupLayout=collapsedGroupLayout;
  this.searchableProperty=searchableProperty;
  this.groupFrom=groupFrom;
  this.groupTo=groupTo;
  this.childLayout=childLayout;
  this.lastChildLayout=lastChildLayout;
  this.childFrom=childFrom;
  this.childTo=childTo;
  this.indicatorId=indicatorId;
  filteredItems=Arrays.asList(items);
}

public GenericExpandableListAdapter ( Context context , T [ ] items , int expandedGroupLayout , int collapsedGroupLayout , String searchableProperty , String [ ] groupFrom , int [ ] groupTo , int childLayout , int lastChildLayout , String [ ] childFrom , int [ ] childTo , int indicatorId ) { inflater = ( LayoutInflater ) context . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ; this . allItems = items ; this . expandedGroupLayout = expandedGroupLayout ; this . collapsedGroupLayout = collapsedGroupLayout ; this . searchableProperty = searchableProperty ; this . groupFrom = groupFrom ; this . groupTo = groupTo ; this . childLayout = childLayout ; this . lastChildLayout = lastChildLayout ; this . childFrom = childFrom ; this . childTo = childTo ; this . indicatorId = indicatorId ; filteredItems = Arrays . asList ( items ) ; }
creates a new adapter from the specified expandable list items , allowing configuration of ( expanded / collapsed ) header and child layouts as well as the mapping between the properties of the supplied items and the ids of the text views within the layouts .
