Zoom-In replace small image with large image
- Dominant language
- Java
- Stars
- 18.8k
- Forks
- 3.9k
- PR merge metrics
- No merged PRs in 30d
Description
Thank you for you beautiful library.
I just have one problem. I have an ImageView with a small image in it. I want to replace this small image with a large (high-resolution-image) one. This works, but i have to reset (reposition) the large image - e.g. user zoom in the small image and if the "replace" is done i want that the user see exactly the same detail as before. My Code is:
`mAttacher.setOnScaleChangeListener(new PhotoViewAttacher.OnScaleChangeListener() {
@Override
public void onScaleChange(float scaleFactor, float focusX, float focusY) {
// NEW IMAGE IS REPLACES
mAttacher.update();
mAttacher.setDisplayMatrix(matrix);
}
});`
This code below is not working! Do i have to "recalculate" the excactly position and scale?
Thank you and sorry for my english...
Contributor guide
Assessment
This issue has not been assessed yet.