I would like to create a generic ViewGroup which can then be reused in XML layouts to round the corners of anything that is put into it.
For some reason canvas
canvas
Why not just define a ShapeDrawable as the background of your layout and just change the corner radius of the drawable at runtime.