您的位置:首页 > 其它

Glide下载指定宽高图片,并获取本地文件路径

2016-12-28 14:48 429 查看

使用Glide下载指定宽高图片,并获取本地文件路径

FutureTarget<File> future = Glide.with(this)
.load(user.getImages().get(i).getPath())
.downloadOnly(200, 200);
try {
File cacheFile = future.get();
String path = cacheFile.getAbsolutePath();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  图片 Glide