Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of image source of GestureImageView #45

Open
Filipemmp opened this issue Feb 27, 2013 · 1 comment
Open

Update of image source of GestureImageView #45

Filipemmp opened this issue Feb 27, 2013 · 1 comment

Comments

@Filipemmp
Copy link

Hello,

I am doing some tests with the codes provided here, specifically with custom view GestureImageView, and using StandartImageProgrammatic as main activity. When trying to perform the update of the source image based on a condition, for example:

if (x = 1) {
view.setImageResource (R.drawable.first);
else {}
view.setImageResource (R.drawable.second);
}

if the original image is zoomed or/and scrolled, changing the original position, when app make the exchange of image source, it is reset to the original position without zoom, and centralized.

Is there a way to keep the position of the previous picture?

Sorry for bad english.

Thank you.

@Malachiasz
Copy link

This library keeps position: https://github.com/sephiroth74/ImageViewZoom
but it doesn't zoom so precise as this one.

To the topic I am unable to setImageResource at all...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants