1

I'm drawing a background color in canvas using a Paint object. I'm using xfermode as PorterDuffXfermode(PorterDuff.Mode.DARKEN) for this paint. The background color is visible in devices below Android 10. But when I run in Android 10 devices, the background color is not visible.

paint.xfermode = PorterDuffXfermode(PorterDuff.Mode.DARKEN)

I was searching for any behavior changes in Android 10 on the Android Developers site but found nothing related to paint.

Is this a bug from their side or am I doing something wrong?

Adinia
  • 3,603
  • 5
  • 38
  • 56
Vijay
  • 516
  • 5
  • 14
  • Probable bug but see [this](https://stackoverflow.com/questions/50543570/android-canvas-change-color-of-intersection-of-shapes-and-texts/50587415#50587415) for some tips – Jon Goodwin Nov 06 '19 at 23:01

0 Answers0