I'm kind of fresh in adnroid, so asking for an advice.

I'm trying to make 2 imageViews, which could be zoomable. For this reason I've implemented <https://github.com/chrisbanes/PhotoView> library, which makes imageView fully zoomable, double clicks zoom and etc.

The key idea I want to make, is to copy gestures from one image, and apply those gestures to another(For example, if the first image is beeing zoomed, I want the other one to be zoomed exactly the same). The logical way to do that is writing an setOnTouchListener for photoView(imageView from library) and in onTouch method call other image view and dispachTouchEvent for it. But writing setOnTouchListener requeres to override onTouch method, which then makes the funcionaluty of photoView don't work.

So my question is, can I even override libraries mathods ? Or if I can,maybe that's the drawback, that i loose all it's functionality ? If I can't do that, do you guys have any other advices how to copy gestures from one imageView to another? Or maybe it would work with other zoomable image libraries ? The main point of using external library was not to reinvent the whole zoomable imageView.

Thanks in advance!

```
PhotoView image = findViewById(R.id.photo); 
PhotoView image2 = findViewById(R.id.photo2);

image.setOnTouchListener(new View.OnTouchListener() {
        @Override
        public boolean onTouch(View view, MotionEvent motionEvent) { 
            image2.dispatchTouchEvent(motionEvent);
            return false;
        }
    });

```