2012-05-11 33 views
1

我有ExpandableListView和擴展BaseExpandableListAdapter爲我自己的適配器。不過,我在分離器方面遇到困難。我添加到我的ExpandableListView「分隔符」到某些位置的對象列表中,我需要使用不同的行佈局在ExpandableListView中顯示它們。現在的問題是,BaseExpandableListAdapter沒有BaseAdapter的getViewTypeCount()和getItemViewType(int position)方法。有沒有辦法如何做到這一點?一個ExpandableListView的多個佈局

+1

查看文檔更困難。這些方法適用於子視圖和組視圖。 – Luksprog

+0

在這裏找不到:http://developer.android.com/reference/android/widget/BaseExpandableListAdapter.html – Michal

+1

http://developer.android.com/reference/android/widget/BaseExpandableListAdapter.html#getChildType %28int,%20int%29? – Luksprog

回答