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

ScaleImageView does not support setImageUri #10

Open
joeyphant opened this issue Jul 17, 2015 · 1 comment
Open

ScaleImageView does not support setImageUri #10

joeyphant opened this issue Jul 17, 2015 · 1 comment

Comments

@joeyphant
Copy link

I'm having a very similar issue to #9 ,
Images won't display when using setImageUri (I think picasso also uses setImageUri).
The setImageUri method is not overridden in ScaleImageView, so Initialize is never called.

However, adding

public override void SetImageURI (Android.Net.Uri uri)
{
    base.SetImageURI (uri);
    this.Initialize ();
}

to ScaleImageView does help to display the image (although smaller than it should), but the zoom won't work properly (seems like zooming from max to min on every move).

I'm using the ScaleImageView inside of a viewPager and setting the image with

imageview.SetImageURI (Android.Net.Uri.Parse (filePath));
@jamesmontemagno
Copy link
Owner

I can add this in there, you should be able to just copy int he code into your solution.

I will go ahead and push a new package out tomorrow.

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