Horizontalscrollview Onclicklistener Doesn't Get Called
Solution 1:
One thing you could do is have the click listener on the view that contains the horizontal scrollsview. Along with this you could have each view in the HSV clickable aswell.
Solution 2:
Perhaps the event is being consumed before the click is fired? try using onTouch() instead of onClick().
If the problem is that the other items are consuming the even rather than the scroll you may have to use a loop to add the listener to all the items added to the scroll.
Solution 3:
heyy just try this just put ClickListener not on scroll view but on the child of that scroll view like relative or linear layout bcoz all your item in that layout also i think its work. and if you try on screen touch then may be it difficult because all screen work in this idea so try my idea of child layout
Post a Comment for "Horizontalscrollview Onclicklistener Doesn't Get Called"