Java ExpandAbleListView发生错误,无法实例化ExpandableListAdapter类型
代码和Java ExpandAbleListView发生错误,无法实例化ExpandableListAdapter类型,java,android,android-adapter,Java,Android,Android Adapter,代码和new之后的第二行有错误。。 关于expandablelistAdapter的构造函数。请帮帮我 错误是:无法实例化类型ExpandableListAdapter mExpandableListView = (ExpandableListView) findViewById(R.id.list); adapter = new ExpandableListAdapter(this,mExpandableListView,mGroupCollection); mExpandable
new
之后的第二行有错误。。
关于expandablelistAdapter
的构造函数。请帮帮我
错误是:无法实例化类型ExpandableListAdapter
mExpandableListView = (ExpandableListView) findViewById(R.id.list);
adapter = new ExpandableListAdapter(this,mExpandableListView,mGroupCollection);
mExpandableListView.setAdapter(adapter);
更改适配器ExpandableListAdapter的名称这将解决您的问题。还要使用新名称更改构造函数