Class ExpandableSearchListAdapter
-
- All Implemented Interfaces:
-
android.widget.ExpandableListAdapter
,android.widget.HeterogeneousExpandableList
public final class ExpandableSearchListAdapter extends BaseExpandableListAdapter
List adapter for poi search
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ExpandableSearchListAdapter.ItemEventListener
public @interface
ExpandableSearchListAdapter.EventType
-
Field Summary
Fields Modifier and Type Field Description private final List<SearchItemViewModel>
items
private String
expandedChildId
-
Constructor Summary
Constructors Constructor Description ExpandableSearchListAdapter(ExpandableSearchListAdapter.ItemEventListener itemEventListener)
-
Method Summary
Modifier and Type Method Description final List<SearchItemViewModel>
getItems()
final String
getExpandedChildId()
final Unit
setExpandedChildId(String expandedChildId)
Integer
getGroupCount()
Integer
getChildrenCount(Integer groupPosition)
Object
getGroup(Integer groupPosition)
Object
getChild(Integer groupPosition, Integer childPosition)
Long
getGroupId(Integer groupPosition)
Long
getChildId(Integer groupPosition, Integer childPosition)
Boolean
hasStableIds()
Unit
onGroupExpanded(Integer groupPosition)
Unit
onGroupCollapsed(Integer groupPosition)
View
getGroupView(Integer groupPosition, Boolean isExpanded, View convertView, ViewGroup parent)
View
getChildView(Integer groupPosition, Integer childPos, Boolean isLastChild, View convertView, ViewGroup parent)
Boolean
isChildSelectable(Integer groupPosition, Integer childPosition)
-
Methods inherited from class android.widget.BaseExpandableListAdapter
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ExpandableSearchListAdapter
ExpandableSearchListAdapter(ExpandableSearchListAdapter.ItemEventListener itemEventListener)
-
-
Method Detail
-
getItems
final List<SearchItemViewModel> getItems()
-
getExpandedChildId
final String getExpandedChildId()
-
setExpandedChildId
final Unit setExpandedChildId(String expandedChildId)
-
getGroupCount
Integer getGroupCount()
-
getChildrenCount
Integer getChildrenCount(Integer groupPosition)
-
getGroupId
Long getGroupId(Integer groupPosition)
-
getChildId
Long getChildId(Integer groupPosition, Integer childPosition)
-
hasStableIds
Boolean hasStableIds()
-
onGroupExpanded
Unit onGroupExpanded(Integer groupPosition)
-
onGroupCollapsed
Unit onGroupCollapsed(Integer groupPosition)
-
getGroupView
View getGroupView(Integer groupPosition, Boolean isExpanded, View convertView, ViewGroup parent)
-
getChildView
View getChildView(Integer groupPosition, Integer childPos, Boolean isLastChild, View convertView, ViewGroup parent)
-
isChildSelectable
Boolean isChildSelectable(Integer groupPosition, Integer childPosition)
-
-
-
-