Remove all added views from ListView
I am adding a view to my ListView with the following code:
My question is how to clear all the added views? I've tried removeAllViews() but it's not working.
I need to add the view to my ListView so that I can set its empty view with:
Clear the items from the list you are using in your adapter, then call notifyDataSetChanged() on the adapter. Checkout this similar question.
Let me know if this helps, or if you need more information!