你的位置:首页 > 软件开发 > 操作系统 > 【原创】Android ExpandableListView使用

【原创】Android ExpandableListView使用

发布时间:2016-03-16 19:00:03
ExpandableView的使用可以绑定到SimpleExpandableListAdapter,主要是看这个Adapter怎么用。 这个类默认的构造函数有9个参数, 很好地解释了什么叫做又臭又长。public SimpleExpandableListAdapter (Cont ...
ExpandableView的使用可以绑定到SimpleExpandableListAdapter,主要是看这个Adapter怎么用。 这个类默认的构造函数有9个参数, 很好地解释了什么叫做又臭又长。

public SimpleExpandableListAdapter (Context context, List<? extends Map<String, ?>> groupData, int groupLayout, String[] groupFrom, int[] groupTo, List<? extends List<? extends Map<String, ?>>> childData, int childLayout, String[] childFrom, int[] childTo)

不过不用担心, 只要把Group开头的和Child开头的分成两组来看就好。 具体看下面注释部分。

代码:

原标题:【原创】Android ExpandableListView使用

关键词:Android

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录