I have a layout in android that needs to be a certain shape, i.e. this:
where the corners are cut off. Is there a way of doing this programatically without setting the background of the layout to the image? I'm looking to keep the app size as small as possible so minimising the number of drawables in the app is a must.
and then use the custom Shape in a ShapeDrawable as the background Drawable:
Which looks something like: