adapterListView = new SpecialAdapter(getBaseContext(),list,R.layout.listview_layout,from,to);
adapterListViewCash = new SpecialAdapter(getBaseContext(),list,R.layout.jpos_cash_adapter,fromCash,toCash);
is it possible to have multiple adapter in one list view i want to implement something like this...
lv.addHeaderView(headerView);
lv.addFooterView(footerView);
lv.setAdapter(adapterListView);
lv.setAdapter(adapterListViewCash);
i know it's an error but how can i implement something like this?
I want to do this because my objects in list view has 6 format.. how can i manipulate my item adapter layout?
最佳答案
CommonsWare 创建了一个适配器来完成此任务。 https://github.com/commonsguy/cwac-merge
关于android - 如何在一个ListView中拥有多个数据适配器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21448635/