What is the best way of constructing a ListView
that uses the least memory possible? This is important, because I met a few implementations and most of them is
Look at this code with description to increase the efficiency of lisview.
Keep in mind when you have lots of data to show in listview then at a time do not load all data . First load 2o data then load another when listview reaches at end.
This is also another way to increase the efficiency of listview.
getView()
ViewHolder
patternCursor
as underlying data instead of object list built from cursor if your data comes from database
, you save memory by not creating additional objects.You will have to use the ViewHolder pattern.