问题
I was getting the url as a string and i am appending it to images properly and they were able to display. Now I need to Pinch zoom that image by any way i.e. double click, pinch zoom and taking it to another activity....
I found links but they are local drawables but i need for urls
回答1:
Try following links. May this help you
- https://github.com/MikeOrtiz/TouchImageView
- http://blahti.wordpress.com/2013/01/07/pan-zoom-examples-for-android/
- http://www.wglxy.com/android-tutorials/android-touch-pan-and-zoom-examples
回答2:
From what I can gather from your question..
Do you want pinch zoom functionality in ImageView
that you are using. then refer this link
Or
is it you are using an WebView
to load your image from url and want zoom_in_out functionality in WebView
then use
.getSettings().setBuiltInZoomControls(true);
link for clarity
If thats not what you want then let me know..
回答3:
You can take advantage of below library, that will work with Activity
, Fragment
, RecylerView
.
https://github.com/rahulkapoor1/ZommableLoadingImageView
来源:https://stackoverflow.com/questions/17230159/zooming-an-image-view-in-android-with-a-url-as-a-string