以下代码可以实现ExpandableListView进入以后默认展开。

即 不需要点击右侧箭头符号即可看到所有列表已经展开。

[plain]  view plain  copy

    1. for(int i = 0; i < expandableListAdapter.getGroupCount(); i++){  
    2.                           
    3.    expandableListView.expandGroup(i);  
    4.                           
    5. }


    其中expandableListAdapter是适配器对象,expandableListView是扩展列表的对象。

    注意此处数据源已经得到了匹配。

    阿里云国内75折 回扣 微信号:monov8
    阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6
    标签: android