ImageView读取本地路径图片

£神魔★判官ぃ 2021-10-30 02:54 530阅读 0赞

方法一、

imageview.setImageURI(Uri.fromFile(new File(这里填路径字符串)));

方法二、

Bitmap bitmap = BitmapFactory.decodeStream(getContentResolver()
.openInputStream(imgeUri));
imageview.setImageBitmap(bitmap);

转载于:https://www.cnblogs.com/bug01/p/11186648.html

发表评论

表情:
评论列表 (有 0 条评论,530人围观)

还没有评论,来说两句吧...

相关阅读