代码中以及 new
之后的第二行有错误。
在 expandablelistAdapter
的构造函数上。请帮帮我。
错误是:无法实例化类型 ExpandableListAdapter ....
mExpandableListView = (ExpandableListView) findViewById(R.id.list);
adapter = new ExpandableListAdapter(this,mExpandableListView,mGroupCollection);
mExpandableListView.setAdapter(adapter);
最佳答案
更改适配器 ExpandableListAdapter 的名称,这将解决您的问题。还要使用新名称更改构造函数。
关于java - ExpandAbleListView 出现 Cannot instantiate the type ExpandableListAdapter 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16289786/