开发者

handle click event for image inside scrollview

开发者 https://www.devze.com 2023-01-28 10:28 出处:网络
I have a set of images inside horizontal scrollview. I want to perform click event on these images. I have added onClickListener to the images.开发者_JAVA百科 But its not working. I think since images

I have a set of images inside horizontal scrollview. I want to perform click event on these images. I have added onClickListener to the images.开发者_JAVA百科 But its not working. I think since images are inside scrollview the problem arises. Can anyone help on this issue?


I used OnTouchListner instead of OnClickListener and applied it to the images inside ScrollView. Now I am able to do it.

@Desiderio : I used ScrollView for some other purpose. I required it for my appn. It doesnt interfere with my pbm. Sorry, I made mistake while explaining my pbm.

0

精彩评论

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