android7.0中文文档(API)-- HeterogeneousExpandableList

来源:互联网 发布:腾讯游戏数据分析 编辑:程序博客网 时间:2024/05/17 22:34

完整内容,请查看: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 theAdapter 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 ExpandableListViews, these values should be tuned for heterogeneousExpandableListViews.
一个ExpandableListAdapter声明了它的组项和子项各有一个视图类型。尽管适用于大多数ExpandableListView,但是这些值应该针对异构的ExpandableListView进行调优。

包含不同类型的组和/或子项视图的列表,应该使用实现了此接口的适配器。通过这种方法,将提供给getGroupView(int, boolean, View, ViewGroup)getChildView(int, int, boolean, View, ViewGroup)的可回收视图合适的组视图或子视图类型,从而更有效地重用以前创建的视图。

摘要


Public方法

abstract intgetChildType(int groupPosition, int childPosition)

Get the type of child View that will be created by getChildView(int, int, boolean, View, ViewGroup) for the specified child item.
获取子视图的类型,将通过getChildView(int, int, boolean, View, ViewGroup),为指定的子项创建子视图。

abstract intgetChildTypeCount()

Returns the number of types of child Views that will be created by getChildView(int, int, boolean, View, ViewGroup) .
返回子视图类型的数量,将通过getChildView(int, int, boolean, View, ViewGroup),来创建子视图。

abstract intgetGroupType(int groupPosition)

Get the type of group View that will be created by getGroupView(int, boolean, View, ViewGroup) .
返回组视图类型的数量,将通过getGroupView(int, boolean, View, ViewGroup),来创建组视图。

abstract intgetGroupTypeCount()

Returns the number of types of group Views that will be created by getGroupView(int, boolean, View, ViewGroup) .
返回组视图类型的数量,将通过getGroupView(int, boolean, View, ViewGroup),来创建组视图。

阅读全文
0 0