How to set google drive image link to imageview? [duplicate]

心不动则不痛 提交于 2020-01-25 06:40:12

问题


I am trying to set google drive image link to image view, but it showing blank.I tried many ways and i used Glide library also. If i am using sample online url it is working. Here is my link. https://drive.google.com/file/d/18F2oNjVUmyX7Kez5r7A6tOlrN0u5oZOr/edit

How to solve this help me please.


回答1:


You can append the file id to ( "https://docs.google.com/uc?id=") and use the link to load the image in the imageview using GLIDE, ImageLoader, Picasso etc.

In your case, the URL will become (https://docs.google.com/uc?id=18F2oNjVUmyX7Kez5r7A6tOlrN0u5oZOr).



来源:https://stackoverflow.com/questions/49552759/how-to-set-google-drive-image-link-to-imageview

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