I have a gallery where I have implement a custom adapter extending the BaseAdapter. For some items, I want them to be disabled, and not clickable as well.
Overriding the isEnabled(int) method doesn’t work. I am still able to click on the disabled items, and then, the gallery centers this item inside it.
Any ideas?
This following is the relevant source code of gallery widget
As you can see, the gallery scrolls to the tapped child item before performing the click on it.
So the only way you can truly disable an item is by extending
Galleryand overridingonSingleTapUp(MotionEvent e)in it.Try and let me know.