简体   繁体   中英

ExpandAbleListView an error of Cannot instantiate the type ExpandableListAdapter

There is the error in code and on second line after new .. on constructor of expandablelistAdapter . Please help me out.

ERROR IS: Cannot instantiate the type ExpandableListAdapter ....

mExpandableListView = (ExpandableListView) findViewById(R.id.list);     
adapter = new ExpandableListAdapter(this,mExpandableListView,mGroupCollection); 
mExpandableListView.setAdapter(adapter);

Change the Adapter ExpandableListAdapter's name this will solve your problem. Also change the constructor with the new name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM