ImageView.setImageURI(Uri uri)是否可以与远程文件一起使用? [英] Does ImageView.setImageURI(Uri uri) work with remote files?

查看:87
本文介绍了ImageView.setImageURI(Uri uri)是否可以与远程文件一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用ImageView.setImageURI(Uri uri)从远程服务器加载图像?

Is it possible to load an image from a remote server using ImageView.setImageURI(Uri uri)?

推荐答案

简短的回答是否"!不能.

The short answer is no! It can't.

例如,如果uri包含对本地文件的引用,则可以使用ImageView.setImageURI(Uri uri).例如:file:///sdcard/images/thumb.png

You could use ImageView.setImageURI(Uri uri) for instance if the uri contains a reference to a local file. Eg: file:///sdcard/images/thumb.png

这篇关于ImageView.setImageURI(Uri uri)是否可以与远程文件一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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