完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/HeterogeneousExpandableList.html
HeterogeneousExpandableList
public interface HeterogeneousExpandableList
android.widget.HeterogeneousExpandableList |
Additional methods that when implemented make an ExpandableListAdapter
take advantage of the Adapter
view type mechanism.
其他方法在实现时使一ExpandableListAdapter
可以利用Adapter
视图类型的机制。
An ExpandableListAdapter
declares it has one view type for its group items and one view type for its child items. Although adapted for most ExpandableListView
s, these values should be tuned for heterogeneous ExpandableListView
s.
一个ExpandableListAdapter
声明了它的组项和子项各有一个视图类型。尽管适用于大多数ExpandableListView
,但是这些值应该针对异构的ExpandableListView
进行调优。
getGroupView(int, boolean, View, ViewGroup)
和
getChildView(int, int, boolean, View, ViewGroup)
的可回收视图合适的组视图或子视图类型,从而更有效地重用以前创建的视图。
摘要
Public方法 | |
---|---|
abstract int | getChildType(int groupPosition, int childPosition) Get the type of child View that will be created by |
abstract int | getChildTypeCount() Returns the number of types of child Views that will be created by |
abstract int | getGroupType(int groupPosition) Get the type of group View that will be created by |
abstract int | getGroupTypeCount() Returns the number of types of group Views that will be created by |