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

完整内容,请查看: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 ExpandableListViews, these values should be tuned for heterogeneous ExpandableListViews.
一个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),来创建组视图。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值