开发者

how to fetch position of the image inside the grid view?

开发者 https://www.devze.com 2023-02-09 23:53 出处:网络
I have a set of imageviews placed together in a row inside a grid view. If I am touching on an imageview in it and moving forward or backwar开发者_如何转开发d through the image set, I should get which

I have a set of imageviews placed together in a row inside a grid view. If I am touching on an imageview in it and moving forward or backwar开发者_如何转开发d through the image set, I should get which image I have touched right now(eg: its position in the grid view). How will I achieve it? Can anyone please help?


The position parameter in your onItemClick() method is the position.

0

精彩评论

暂无评论...
验证码 换一张
取 消