Android Expandablelistadapter: Arrayadapter Requires The Resource Id To Be A Textview
Solution 1:
Well the BaseExpandableListAdapter, which I think is the best way to implement an expandable listview, is an abstract class, you got to make a class by yourself that extends it and implement the methods, you can implement the constructor with the parameters you need as well as override the other methods like getChildView, getGroupView in order to make it work just the way you need.
Like this: http://numberedmountain.blogspot.com.es/p/code-example-overriding.html
EDIT: Just a heads up: even if you solve this current error, your ExpandableListView wont work properly since in the getGroupView method you have to take the isExpanded variable into account in order to return the view of the group either expanded or collapsed based on the value. Other than that I think you made it right, the error is unrelated as someone said in comments.
Post a Comment for "Android Expandablelistadapter: Arrayadapter Requires The Resource Id To Be A Textview"