标签: android expandablelistview expandablelistadapter
我正在使用来自WebService的数据的arraylist。 现在我想在特定组点击Expandable listview上添加这些数据。
答案 0 :(得分:0)
更改数据后,您可以将notifyDataSetChanged()调用到适配器。 但是,虽然数据已添加到列表中,但如果您使用的是expandableList,则将面临运行时异常,即适配器数据已更改且未通知。因此,将所有数据添加到adpater并将notifyDataSetChanged()调用到适配器。
notifyDataSetChanged()