0
我正在處理需要在單個ListView上設置兩個適配器的項目。在單個ListView上設置2個適配器
ListViewAnimation和Android-SlideExpandableListView
怎麼辦呢?
我正在處理需要在單個ListView上設置兩個適配器的項目。在單個ListView上設置2個適配器
ListViewAnimation和Android-SlideExpandableListView
怎麼辦呢?
嘗試ListViewAnimations庫中的ExpandableListItemAdapter
。這樣,您可以堆疊兩個適配器:
ExpandableListItemAdapter eliAdapter = new ExpandableListItemAdapter(MainActivity.this){ /* implement required methods */};
SwingBottomInAnimationAdapter animAdapter = new SwingBottomInAnimationAdapter(eliAdapter);
animAdapter.setAbsListView(mListView);
mListView.setAdapter(animAdapter);