如何删除列表视图的所有项目视图、项目、列表

2023-09-04 06:19:12 作者:人称小可爱

在我的应用程序,如果你点击该按钮,然后我想删除所有列表视图项目。 在这里,我使用的基本适配器添加项目到列表视图。

In my app, if you click on the button then i want to remove the all the listview items . Here i am using the base adapter for adding the items to the list view.

如何动态删除列表视图中的项目。

How to remove the list view items dynamically.

推荐答案

呼叫 setListAdapter()了。这一次与空的ArrayList

Call setListAdapter() again. This time with an empty ArrayList.

 
精彩推荐