Android Question How to Set Tag for Listview Item

stevel05

Expert
Licensed User
Longtime User
As the standard listview reuses labels to display items,you won't be able to make use of it's Tag properties.

What you can do is use any of the the Add lines second methods to add a return value. These are objects, so you can store anything in there. Use a User Type and you can store as much structured information as you like.
 
Upvote 0

junaidahmed

Well-Known Member
Licensed User
Longtime User
Actually I have three columns in Customer Table
1.CustomerId
2.CustomerCode
3.CustomerName

I would like to Hide "CustomerId" in listview,based on CustomerId I am going to process data...

hope its clear.......
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Are you talking about Listview or TableView?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
You cannot hide an item from listview, you would have to clear and repopulate the list view minus the item you want to 'hide'.

If you need more help It would be useful if you posted some code showing what you have tried, just so I understand exactly what you are trying to do.
 
Upvote 0
Top