0

我正在开发一个需要在单个 ListView 上设置两个适配器的项目。

ListViewAnimationAndroid-SlideExpandableListView

怎么做?

4

1 回答 1

0

ExpandableListItemAdapter在 ListViewAnimations 库中尝试。这样您就可以堆叠两个适配器:

ExpandableListItemAdapter eliAdapter = new ExpandableListItemAdapter(MainActivity.this){ /* implement required methods */};
SwingBottomInAnimationAdapter animAdapter = new SwingBottomInAnimationAdapter(eliAdapter);
animAdapter.setAbsListView(mListView);
mListView.setAdapter(animAdapter);
于 2013-10-13T15:46:41.087 回答