80,351
社区成员
发帖
与我相关
我的任务
分享
LinearLayout resultDialog = (LinearLayout)getLayoutInflater().inflate(R.layout.result,null,false);
ExpandableListView list = (ExpandableListView) resultDialog.findViewById(R.id.result_list);
Button btn = (Button) findViewById(R.id.search);
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
.......
LinearLayout resultDialog = (LinearLayout)getLayoutInflater().inflate(R.layout.result,null,false);
ExpandableListView list = (ExpandableListView) resultDialog.findViewById(R.id.result_list);
ExpandableListAdapter adapter = new BaseExpandableListAdapter() {.........};
list.setAdapter(adapter);//提示这一句有错
......
}