How to clear the views which are held in the ListView's RecycleBin?
android, android-listview
Solution
If I remember correctly a call to `invalidate` on a `ListView` widget will empty the cache of `Views` which are currently stored. I would advise against emptying the cache of views of a `ListView` because of the potential performance issues.
If you're not going to use the `convertView` item then you'll end up with having to build the row view each time(resulting in a lot of objects constructed each time the user scrolls) + the extra memory occupied by the recycled views from the `RecycleBin` which will never be used anyway.
Problem
In Android's `ListView` widget, the `ListView` will hold the views which is got from `getView` method of an Adapter in a inner class `RecycleBin`. How can I clear the views in the `RecycleBin` and force the `ListView` to recreate all the child views.