I have ExpandableListView and I extended BaseExpandableListAdapter for my own adapter. I am having hard times with separators, though. I added to my list of objects that go to the ExpandableListView “separators” to certain positions and I need to display them in the ExpandableListView using different row layouts. Now the problem is, that BaseExpandableListAdapter doesn’t have methods getViewTypeCount() and getItemViewType(int position) that BaseAdapter does. Is there any way how to do it?
I have ExpandableListView and I extended BaseExpandableListAdapter for my own adapter. I am having
Share
You could implement those “separators” by providing different
Viewsfor the position you want. To do this use the :getChildType()andgetChildTypeCount()(for different childViews)getGroupType()andgetGroupTypeCount()(for different groupViews)from the
BaseExpandableListAdapterclass.