设置多个适配器的单一列表视图 [英] Setting more than one adapter for a single list view

查看:137
本文介绍了设置多个适配器的单一列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能设置多个适配器一个列表?

Is it possible for setting more than one adapter to a single list?

例如

  • list.setAdapter(适配器1);

list.setAdapter(适配器2);

推荐答案

也许你可以尝试将多个适配器一个适配器喜欢这里

Maybe you can try attaching multiple adapters to a single adapter like here

<一个href="http://stackoverflow.com/questions/7964259/android-attaching-multiple-adapters-to-one-adapter">android将多个适配器一个适配器

或者,也许这 的http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/

如果我明白你需要它的正确

if I understand what you need it for correctly

请更新你为什么想要它,所以我们有一个更好的了解。

Pls update why you want it for so we have a better understanding

这篇关于设置多个适配器的单一列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆