是否可以将多个适配器设置为一个列表?
例如
list.setAdapter(adapter1);
list.setAdapter(adapter2);
最佳答案
也许你可以像这里一样尝试将多个适配器连接到一个适配器
android attaching multiple adapters to one adapter
或者这个 http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/
如果我正确理解你需要它做什么
请更新您想要它的原因,以便我们更好地理解
关于android - 为单个 ListView 设置多个适配器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11118809/