simpleDraweeView.setImageURI("res://drawable/" + R.drawable.user_center_bg);
drawable文件夹名称,也可以是mipmap等等
如果是本地的图片文件
simpleDraweeView.setImageURI(Uri.fromFile(filePath));
filePath是图片的真实路径
显示git图片
DraweeController controller = Fresco.newDraweeControllerBuilder()
.setUri(gif_img_url)
.setAutoPlayAnimations(true)
.build();
simpleDraweeView.setController(controller);
网友评论