I am tring to Implement Gallery which contains TextView on ImageView. When user click any of these I need to call some other Activity.
I tried to call setonclickListener on gallery but which always returns result of last item in gallery. If I set onclicklistener on Imageview, gallery stops scrolling.
Is there any way to perform click on both and retrieve the same result and at the same time make gallery scrollable.
Any help is appropriated.
Thanks in advance.
Best way to do this, by setting onItemClickListener on GalleryView, in onItemClick() callback method in this class, there would be an integer parameter respresenting position of item. use this parameter, to get which item has been clicked. But to Use this you need to set Clickable and focusable property of individual item imageview to false.