I have a view to which I want to set a drawable image which is very easy. the images is set properly but the corners are square. If I try to make the corners rounded by using shape attribute in an xml drawable then the corners are round but I cannot find a way to set the image background as the background attribute of the view is used to set the xml drawable for corner.
Is there a way to have the background as an image as well as rounded corners. I am aware of solutions like using an image with rounded corners but I don’t want to bother the graphics team for such smaller issues and I want to have a generic solution.
Thanks a lot for your help.
Override the
dispatchDrawmethod of your view(oronDrawin case it’s not a view hierarchy)