yakusha
yakusha

Reputation: 815

Make image visible from selected row inside listview android

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

Answers (2)

Aju
Aju

Reputation: 4599

SetTag on imageview and when onItemClick You will get the view and find the imageview using tag and apply visibility.

Upvotes: 1

Sunil Kumar
Sunil Kumar

Reputation: 7092

use this code inside the getView()

holder.image.setVisibility(vi.VISIBLE);

Upvotes: 0

Related Questions