我想设置图像属性的值对象类,你会在下面,但使用滑翔滑翔与setter方法URL图像源
try {
InputStream stream = new URL("my url").openStream();
Bitmap pictureBitmap = BitmapFactory.decodeStream(stream);
"my model class".setImageBitmap(pictureBitmap);
} catch (IOException e) {
e.printStackTrace();;
}
我想这是你如何获取从图像利用Glide作为位图
Glide
.with(getContext())
.load("my url")
.asBitmap()....
那么,你的问题到底是什么? – ikhsan
@ikhsan使用Glide完成代码设置图像属性 – Geob
检查我的答案 – ikhsan