Reputation: 815
In my application, i am trying to make holder.image visible at the selected row inside my ListView. My listview adapter is as follows:
called in my onCreate() activity but i can't set holder.image to visible from onCreate() activity. To be true, i don't know how to do it. Anyone already done this ? Please share your knowledge with me. thanks you in adavance.
Upvotes: 0
Views: 253
Reputation: 4599
SetTag on imageview and when onItemClick You will get the view and find the imageview using tag and apply visibility.
Upvotes: 1
Reputation: 7092
use this code inside the getView()
holder.image.setVisibility(vi.VISIBLE);
Upvotes: 0