fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Rounding method cannot be changed and it has to be set during construction time.

Open msilemsile opened this issue 11 years ago • 1 comments

RoundingParams roudParam = holder.image.getHierarchy().getRoundingParams(); roudParam.setRoundAsCircle(true); holder.image.getHierarchy().setRoundingParams(roudParam);

msilemsile avatar Apr 01 '15 07:04 msilemsile

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)

plamenko avatar Apr 01 '15 11:04 plamenko