I make my gallery. For this, I decided to use HorizontalScrollView . It was not difficult to add pictures, but HorizontalScrollView does not have a listener for clicking on an element that was added to HorizontalScrollView and is currently in focus (displayed). And I need to perform actions, for example, delete the picture that is now (visible) in the HorizontalScrollView .
How can I determine the position of the visible image?