Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了一个问题,我有一个 expandableListView 有 5 个组
如果我想向第二组添加一些项目,并在运行时更新 expandableListView,
有人可以教我怎么做吗?
更新生成 ExpandableListView 的光标/适配器,并自动重新生成视图
如果您使用的是 BaseExpandableListAdapter ,那么您可以在运行时获取 getChildView (...) ,您可以在其中添加任何您想要的内容。如果您仍然遇到任何问题,请详细说明您想要做什么,