-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
How to show initially full image with PhotoView? #498
Comments
Did you find a solution? |
Looking for this feature as well |
Zoom out feature will be good. |
Did you find a solution? |
Yes:
|
@anthony3444 I tried your solution but got nothing. When I call photoView.setScale(something) nothing changes. Do you know why? |
@giusecapo if this is not working for you try setting the scale AFTER the view renders: Example:
|
@anthony3444 java.lang.IllegalArgumentException: Medium zoom has to be less than Maximum zoom. Call setMaximumZoom() with a more appropriate value |
just add this in your xml photoview
|
Hi guys!
First at all, thank you very much for your awesome library! Great job!
About my problem: when my Activity starts, I want to show initially full image in PhotoView widget (like center_crop scale). It's just for initialization, so I can't set scale_type = center_crop, because after that I can't see complete image when I pinch / zoom.
thank you very much for your help!
The text was updated successfully, but these errors were encountered: