使用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();
}