Reputation: 1611
I have custom ListView with an Image of Right Sign.
What I want is that whenever I click on any list row the sign of Right (Image) is occur on the clicked list row and remove that right sign (Image)from the previous row LIKE radio button?
What should I do ?
Upvotes: 1
Views: 106
Reputation: 1294
Upvotes: 1
Reputation: 3443
You can do it manually by storing flag (boolean) variable for each of the item you set with listview.
Than change the flag to true of the item that is clicked . Use listview.notifyDatasetChange() in onItemClick() so that listview get effect.
Upvotes: 0