gpt4 book ai didi

android - ExpandableListView 折叠所有父项

转载 作者:IT老高 更新时间:2023-10-28 23:18:59 25 4
gpt4 key购买 nike

我需要知道如何折叠(或查找)ExpandableListView 中的所有父项的 ID。

谢谢,

亚历山大

最佳答案

int count =  mListAdapter.getGroupCount();
for (int i = 0; i <count ; i++)
mListView.collapseGroup(i);

关于android - ExpandableListView 折叠所有父项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2848091/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com