In my app, if you click on a button then i want to remove all the listview items. Here, i am using the base adapter for adding the items to the list view.
How can i
I just clean the arraylist , try values.clear();
values = new ArrayList(); values.clear(); ArrayAdapter adapter; adapter = new ArrayAdapter(this, R.layout.list,android.R.id.text1, values); lista.setAdapter(adapter);