Android gallary

I am trying to implement a gallery of images with scaling and reduction of objects in each image.

for this I have an advanced ImageView and a zoom mechanism is added with it, and then in the adapter class I return my own ImageView. But, unfortunately, it does not work with Gallery widgets.

My image skeleton looks like this:

public class myImageView extends ImageView implements OnTouchListener{}

My adapter code class is also simple, I just use my ImageView instead of the original one. Zoom in Zoom out in my ImageView works fine without a gallery, but not with a gallery.

Anyone advice?

+3
source share

Source: https://habr.com/ru/post/1794276/


All Articles