在 android imageview 中使用滑行显示谷歌驱动器图像 [英] show google drive image with glide in android imageview

查看:22
本文介绍了在 android imageview 中使用滑行显示谷歌驱动器图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的驱动器网址是 -https://drive.google.com/file/d/0B3DFHb2-MdGYa2NMUkVtVkZ1V1k/view?usp=sharing

我想使用 glide 在 android imageview 中显示它.我尝试了很多方法来展示它.以下是我要显示的代码 -

I want to show it in android imageview using glide. I have tried many ways to show it. Following is my code to show -

Glide.with(getActivity()).load(readExcelFeed.getImage().toString()).into(ivQueImage);

请告诉我其中有什么问题.

Please let me know what is the issue in it.

推荐答案

除非我遗漏了什么,否则您只想使用 Glide 显示那张图片.只需右键单击它,选择复制图像地址",然后将其用作 Glide 的 url 字符串.

Unless I'm missing something, you want to show just that single image using Glide. Just right click on it, select "Copy image address", then use that as your url String for Glide.

String url = "https://lh3.googleusercontent.com/s6-0yxPhDS4Os7SYbP66RCNp-mDwuKr72mLJx9ekuTWYFPgXahCvj-oVatwXELyVfyZzD80YTaiYde4=w1278-h954-rw";

Glide.with(getActivity()).load(url).into(ivQueImage);

这篇关于在 android imageview 中使用滑行显示谷歌驱动器图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆