using setTag() with List adapter

Put your problem here if it does not fit any of the other categories.

using setTag() with List adapter

Postby ting-tong » Wed Mar 09, 2011 10:41 pm

I am populating a ListView from SQLite table using adapter like below
Code: Select all
new String[] {"Name"},
new int[] {R.id.TextView_Name});


What I actually want to do is to also store the _id field in a hidden way and associate with the TextView. I plan to use the TextView.setTag() for this but not sure how to use it with the adapter here? Any workaround this?
ting-tong
Freshman
Freshman
 
Posts: 2
Joined: Mon Dec 27, 2010 11:16 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Alexa [Bot] and 20 guests