Skip to content Skip to sidebar Skip to footer

Android Expandablelistview Nullpointerexception At Obtainview

I'm trying to work with a simple ExpandableListView and I can't figure out why I get that NPE at ObtainView. I should have only one parent and few more children which should be ope

Solution 1:

You are returning null from getChild() and getGroup(). You should return the corresponding group and child items from your data structures.

Also, you are returning null from getChildView() and getGroupView(). Here you should return a View that will represent the child and group Views respectively.

I suggest you read about Adapters and how they work.

Post a Comment for "Android Expandablelistview Nullpointerexception At Obtainview"