• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help to bind two String arrays to two textview in a list  RSS feed

 
goel swati
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two array Name and Number

Elements of these are from ContactContract.Data.

I have to display these elements in listview.

for this I will hv to bind these arrays.

But I m not getting how to bind these two arrays.
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create your own subclass of ArrayAdapter class to do this. You can find an example here...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!