fresco
fresco copied to clipboard
Rounding method cannot be changed and it has to be set during construction time.
RoundingParams roudParam = holder.image.getHierarchy().getRoundingParams(); roudParam.setRoundAsCircle(true); holder.image.getHierarchy().setRoundingParams(roudParam);
If you are specifying SimpleDraweeView in XML, then do roundAsCircle="true" there. If you are creating the hierarchy programmatically, then specify rounding params while building the hierarchy.
Basically, you need to tell the hierarchy at its construction time that you are going to use roudned corners, in order for hierarchy to preallocate some stuff. Only then you'll be able to change roundign params later (except for rounding method)