Android BlurMaskFilter has no effect in canvas.drawOval while text is blurred

后端 未结 3 1776
感情败类
感情败类 2020-12-01 03:16

I\'ve been trying to create a custom view which has blurred shapes under text. The problem is that the BlurMaskFilter has no effect on any shape that I draw on the canvas. H

3条回答
  •  长情又很酷
    2020-12-01 03:27

    Looks like a bug to me. I reported it to the Android team; we'll see what they say.

    It renders correctly if you set android:hardwareAccelerated="false" on your Activity in AndroidManifest.xml.

    Here is the official word from the Android graphics team: "BlurMaskFilter is not supported with hardware acceleration." (As of July 10, 2012)

提交回复
热议问题