原文:关于BaseExpandableListAdapter

首先要明确,可折叠列表在每个项是包含子项的,那么肯定会用到集合嵌套 下面是封装的两个实体类: package com.yx.pojo public class Chid private int img private String txt public int getImg return img public void setImg int img this.img img public Stri ...

2016-10-04 21:48 0 4324 推荐指数:

查看详情

Android之ExpandableList扩展用法(基于BaseExpandableListAdapter

1.简介   基于基于BaseExpandableListAdapter扩展的ExpandableList用法,现在网上流行的主要有两种:第一种是向BaseExpandableListAdapter传入两个数组,第一个是表示Group(目录头)信息的一维数组,第二个是表示Child(目录子项 ...

Wed Jul 18 18:46:00 CST 2012 3 17122
android:使用BaseExpandableListAdapter实现可折叠的列表

使用BaseExpandableListAdapter 可以实现所谓的可折叠的列表,例如QQ里好友的分组的功能。 BaseExpandableListAdapter与BaseAdapter的基本原理是一样的,只不过在传入list的时候,要传入两组,一组是groupArray ,一组时 ...

Mon Jun 18 23:29:00 CST 2012 2 17839
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM