如何将Google Drive Image链接设置为ImageView



我正在尝试将Google Drive Image链接设置为图像视图,但是它显示了空白。我尝试了多种方式,我也使用了Glide库。如果我使用示例在线URL,则可以正常工作。这是我的链接。https://drive.google.com/file/d/18f2onjvumyx7kez5r7a6tolrn0u5ozor/edit

如何解决这个帮助我。

您可以将文件ID附加到(" https://docs.google.com/uc?id="(,并使用链接使用Glide在ImageView中加载图像,成像装载机,毕加索等

在您的情况下,URL将变为(https://docs.google.com/uc?id=18f2Onjvumyx7kez5r7a6tolrn0u5ozor(。

最新更新