美文网首页
2020-05-06 Fresco中SimpleDraweeVi

2020-05-06 Fresco中SimpleDraweeVi

作者: 风雪守候 | 来源:发表于2020-05-06 14:25 被阅读0次

    kotlin写法

    val request = ImageRequestBuilder
            .newBuilderWithSource(Uri.parse(url))
            .setPostprocessor(IterativeBoxBlurPostProcessor(blurRadius))
            .build()
    simpleDraweeView.setImageRequest(request)
    

    url:图片地址
    blurRadius:模糊效果参数,API接口参数的介绍(The given blur radius. Must be greater than 0 and not greater than 6553)

    相关文章

      网友评论

          本文标题:2020-05-06 Fresco中SimpleDraweeVi

          本文链接:https://www.haomeiwen.com/subject/obqwghtx.html