Skip to main content

Posts

Showing posts with the label workaround

Hot to work around Canvas.clipPath() that is not supported in android any more

From android 3.0 the clipPath() method is no longer supported in devices with hardware acceleration turned on.(Read this article for more details). I am working with canvas and I need to draw rounded image. Any ideas about how can I do that? *I can't turn the hardware acceleration off, I am looking for other solution. Answered: Tnx @Malcolm for your answer. I found a good example that demonstrate this technique , it's basically a mask.