florent37 / florent37/ShapeOfView

Hardware acceleration doesn't work with SDK >= 28

Open
#66 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
3.2k
Forks
400
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.