2015年4月30日星期四

ExpandableListView 的用法总结

1. 如果想修改 group标签可以以下设置
@Override
        public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {
            ....
            if (isExpanded){
                groupHolder.iconImageView.setImageResource(R.drawable.alim_create_input_icon_1);
            }else{
                groupHolder.iconImageView.setImageResource(R.drawable.alim_create_input_icon_2);
            }
            return convertView;
        }

要对 还要对 ExpandableListView的标签图标设置空
mStudentExpandableListView.setGroupIndicator(null);

没有评论:

发表评论