2011-09-02 83 views
0

在我的程序中有一个地图视图,我已将MapActivity扩展到我的班级。但现在我想为该程序添加ExpandableListView。我是添加适配器类,将BaseExpandableListAdapter扩展为内部类。如何将ExpandableList添加到程序而不扩展ExpandableListView。 不能添加如何将android可展开列表视图添加到mapview ..?

setListAdapter(mAdapter); 
registerForContextMenu(getExpandableListView()); 

线而没有延伸ExpandableListView。 任何其他可能的方式..?

回答

0

我这个example 成功地做到了说明如何使ExpandableListView不延长ExpandableListView类