Forbid GridView to load all views at once

Posted by efpies on Stack Overflow See other posts from Stack Overflow or by efpies
Published on 2012-06-22T08:51:30Z Indexed on 2012/06/22 9:16 UTC
Read the original article Hit count: 227

I have about 700 items to display in the grid view.

On a Samsung Galaxy Tab 10.1 this is not a problem: it has enough memory. On a HTC Explorer the heap is overflown.

So I want to load data dynamically regarding current scroll position (N rows for screen + 5 rows as a tail). And I want to show a scrollbar which represents the position in total rows. But I don't want to draw items that I don't see.

In other words, I want to create something similar to UITableView in iOS. How can I do this?

© Stack Overflow or respective owner

Related posts about android

Related posts about gridview