Search code examples
androidimageviewtouch-event

Remove clickability from ImageView


I have a ListView and I want it to have shadows at top and bottom. For this I overlay two ImageView-s that contain the shadow images. Problem is, they receive touch events and ListView isn't scrolled when you try to start scrolling from top or bottom. I've tried setting enabled,focusable,clickable and longClickable properties to false, but that doesn't seem to do the trick. Any help would be much appreciated.


Solution

  • setting the imageview focusable="false" and set clickable="false" should work