okaybroda / ImageZoom

An Android library that makes any view to be zoomable.
GNU General Public License v3.0
120 stars 25 forks source link

Is it possible to disable zoomout on the image #11

Open punkfusion opened 6 years ago

punkfusion commented 6 years ago

I need my image to be only able to zoom in

ghost commented 6 years ago

I also need that

okaybroda commented 6 years ago

Enabling this should be as easy as adding a boolean flag but I can't think of a way to dismiss it.

punkfusion commented 6 years ago

I have written some functionality for it. I cannot commit to my own branch on this repo

ghost commented 6 years ago

can u help me please @punkfusion

okaybroda commented 6 years ago

@punkfusion https://codeburst.io/a-step-by-step-guide-to-making-your-first-github-contribution-5302260a2940

Follow the guide above, cheers!

ghost commented 6 years ago

Thanks @okaybroda can you please tell me why image in recycler view flick after touch

punkfusion commented 6 years ago

Made a pull request with the changes

ghost commented 6 years ago

Thanku so much @punkfusion Awesome library @okaybroda

ghost commented 6 years ago

My imageView still flickers on pinch start and after pinch end.....Can you plz tell me why it was happening

ghost commented 6 years ago

The flicking is due to the line placeholderView.background = null inside the following code zoomableView.post(new Runnable() { @Override public void run() { if (dialog != null) { if (Build.VERSION.SDK_INT >= 16) { placeholderView.setBackground(null); } else { placeholderView.setBackgroundDrawable(null); } zoomableView.setDrawingCacheEnabled(false); } } }); Can u suggest me a another way to set background null

punkfusion commented 6 years ago

Maybe setting the background to the same color as the backdrop or even transparent instead. it shouldnt cause a UI change

ghost commented 6 years ago

But above in library code it was taken as a drawable type

ghost commented 6 years ago

is there any another way @punkfusion

ghost commented 6 years ago

I m stuck in this ...can anyone suggest me another way.....pleaseee