Pankaj Khurana
Pankaj Khurana

Reputation: 3271

How do i show the image as selected on touch of a particular image?

I am using image adapter along with grid view to display certain images with caption.

After user touch an image then press a button this image is loaded on the next screen. Right now when a user touch an image it does not show as being selected.

I want to know is there a way to show selected image after a user touch a particular image.

Upvotes: 0

Views: 529

Answers (1)

Vinayak Bevinakatti
Vinayak Bevinakatti

Reputation: 40503

Use selector drawable for the ImageView. Add onClickListner to the ImageView and and in Onclick() method change the ImageView state to sleceted (Image with tick mark on top right or something..)

Upvotes: 1

Related Questions