florent37 / ShapeOfView

Give a custom shape to any android view, Material Design 2 ready
Apache License 2.0
3.12k stars 400 forks source link

Hardware acceleration doesn't work with SDK >= 28 #66

Open AnaelleFz opened 4 years ago

AnaelleFz commented 4 years ago

Hey @florent37,

First of all, thank you for your library.

When I used a RoundRectView with a mapView inside it's works fine except for device on Android P and Android Q. I think you just need to check if the canvas is hardware accelerated and set setLayerType(View.LAYER_TYPE_HARDWARE, null) before drawing it (ShapeOfView.java line 154).

Can you fix it?

Regards,

Anaëlle

Stupidman22 commented 4 years ago

I have problem with this too.

vrsrohit commented 4 years ago

Have you got any solution for this problem

Stupidman22 commented 4 years ago

Still finding a solution :(

bhavin-qfonapp commented 2 years ago

Found any solution?