SimpleDrwawwView动态设置

动态设置属性:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
RoundingParams roundingParams = new RoundingParams();
roundingParams.setRoundAsCircle(true);
GenericDraweeHierarchy hierarchy = GenericDraweeHierarchyBuilder.newInstance(context.getResources())
//设置圆形圆角参数
.setRoundingParams(roundingParams)
.setRoundingParams(RoundingParams.fromCornersRadius(ViewUtil.INSTANCE.dip2px(10f)))
.setFadeDuration(1000)
.setActualImageScaleType(ScalingUtils.ScaleType.FIT_XY)
//构建
.build();


SimpleWebpView firstChargeWebp = v.findViewById(R.id.simpleview);
firstChargeWebp.setHierarchy(hierarchy);