Coder Social home page Coder Social logo

Comments (3)

blackiedm avatar blackiedm commented on April 27, 2024

in this case, you can use RoundingParams.RoundingMethod.BITMAP_ONLY:
just like this:

RoundingParams roundingParams = new RoundingParams();
roundingParams.setRoundAsCircle(true);
roundingParams.setBorder(R.color.border_color, 10);
roundingParams.setRoundingMethod(RoundingParams.RoundingMethod.BITMAP_ONLY);

and set it to GenericDraweeHierarchyBuilder;

from fresco.

plamenko avatar plamenko commented on April 27, 2024

The thing is that we do not apply rounding on overlays and backgrounds when using the BITMAP_ONLY mode (which is default). I'll try to send a fix for that.

But, we do provide RoundedColorDrawable, so as a workaround, you can use that if you are creating your hierarchy programmatically.
https://github.com/facebook/fresco/blob/847851a8de6d223c0a6634447bddee1252e01c64/drawee/src/main/java/com/facebook/drawee/drawable/RoundedColorDrawable.java

from fresco.

tyronen avatar tyronen commented on April 27, 2024

Fixed in 0.3.0.

from fresco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.