Sosi
Sosi

Reputation: 2578

Android, collections

I have a generic list in android.

for other hand i have a listview.

How i could bind the generic list into the listview?

Thanks in advance. Best regards. Jose

Upvotes: 1

Views: 363

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006604

Use an ArrayAdapter, if the "generic collection" implements the List interface. Otherwise, create your own Adapter class, extending BaseAdapter.

Upvotes: 4

Related Questions