Expandablelistview嵌套做成三级列表,该如何动态打开第三层?
因为在展开前我会把列表全部合并,然后再打开指定的第三层,构思的代码如下,但没有起效果。望各路程序大神指点指点!
for (int i = 0; i < mLv.getChildCount(); i++) {
View item = mLv.getChildAt(i);
if (item instanceof CustomExpandableListView) {
Log.d("bigname", "openChooseExpandableItem: *************是expandbalelistview");
CustomExpandableListView subLv = (CustomExpandableListView) item;
subLv.getExpandableListAdapter().onGroupExpanded(searchResultModel.getSecondPosition());
}
}