Are items out of listview visible area deleted ?
-
I have a listview contains 10 items , but only 3 items visible at the same time .If I slide the view ,are the invisible item deleted in memory when the items from visible to invisible?
-
Yes they are. Only as many items as you can see on screen are guaranteed to be alive at any given time, which is why you should be careful about relying on storing any state in the items themselves. You can set the cacheBuffer property to a higher value to keep more items alive in the view. This can sometimes improve scrolling performance at the cost of memory (and startup time).