If we show thumbnail in ImageView and user zooms the views, then when we load the actual image in ImageView the zoom value resets. There should be a method to retain the zoom state.
My app has a image filter effect feature, after the image is applied a filter effect and set to photoview, the zoom level is reset. Need to retain zoom level.
Just found how to do it:
if (!resetMatrix){
val matrix = Matrix()
photoView.getSuppMatrix(matrix)
photoView.setImageBitmap(filteredBitmap)
photoView.setSuppMatrix(matrix)
}
else {
photoView.setImageBitmap(filteredBitmap)
}
Thanks for sharing. I'll will it a try
It is working fine for me. Thanks
That's cool thanks for sharing
Most helpful comment
Just found how to do it: