android - How many items a ListView can store? -


i'm new android programming. wonder how many items listview can store? search in docs don't talk this. if put lot (maybe 10k) items listadapter, affect performance?

cheers, mk.

the listview virtualized in android. practically speaking, means there's no actual limit number of elements inside it. can put millions of rows inside list , it'll allocate memory visible ones (or few more tops).

check out dozens of tutorials regarding writing custom adapter class adapterview (listview extends that). check out google i/o 2010 session on listviews; it's useful: here


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -