dimanche 11 octobre 2015

android lisview - simpleCursorAdapter or ArrayList Adapter?

for a listview with 1000 item(row), Which is better? In terms of memory and scroll speed. i have sqlite db and my table is 1000 rows.

// item xml and getView( ... int position ... )
textView1.setText(row.name(position));
textView2.setText(row.familily(position));
textView3.setText(row.phone(position));
imageView.setImageResource(row.path_image(position));

for 1000 item and imageLoad, arrayList is better or CursorAdapter for listView?

Aucun commentaire:

Enregistrer un commentaire