GenericDraweeHierarchy gg = GenericDraweeHierarchyBuilder.newInstance(getResources())
.setRoundingParams(RoundingParams.fromCornersRadius(20))
.build();
img.setHierarchy(gg);
DraweeController build= Fresco.newDraweeControllerBuilder()
.setUri(body1.getResult().getPicture())
.setTapToRetryEnabled(true)
.build();
img.setController(build);
img1.setController(build);
设置圆形图片
最新推荐文章于 2021-03-11 14:34:31 发布