如何设置谷歌驱动器图像链接到imageview? [英] How to set google drive image link to imageview?
问题描述
我正在尝试将Google驱动器图像链接设置为图像视图,但显示为空白.我尝试了多种方法,并且我也使用了Glide库. 如果我正在使用示例在线URL,则它正在工作. 这是我的链接. https://drive.google.com/file/d/18F2oNjVUmyX7Kez5r7A6tOlrN0edit >
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.
推荐答案
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.
根据您的情况,该网址将变为( https://docs.google.com/uc ?id = 18F2oNjVUmyX7Kez5r7A6tOlrN0u5oZOr ).
In your case, the URL will become (https://docs.google.com/uc?id=18F2oNjVUmyX7Kez5r7A6tOlrN0u5oZOr).
这篇关于如何设置谷歌驱动器图像链接到imageview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!