I'm quite new to Android and i'm trying to draw on a custom view (with canvas). I've got some lines & rects there. The point is, that i now want to give the whole view rounded corners, but that doesn't work well, as i'm drawing on the view and my drawings are above the rounded corners, which were added through the ressources. Is there a possibility to add rounded corners, that cover the whole view?
Best regards and thank's for any help!
Try to use clippath, but just as a side note after 3.0 you need to turn off hardwareAccelerated in you're manifest
There are solutions for that, when founded will post it here as an addition
I am not sure of your requirements. But you can use the below and modify the same
activity_main.xml
bkg.xml
MainActivity.java
Snap shot