Zooming an Image view in android with a URL as a String

白昼怎懂夜的黑 提交于 2019-12-08 14:32:06

问题


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

  1. https://github.com/MikeOrtiz/TouchImageView
  2. http://blahti.wordpress.com/2013/01/07/pan-zoom-examples-for-android/
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!