By default, RoundedDrawable will apply padding to the drawable inside to fit the drawable into
the rounded rectangle. If clipping is enabled by the setClipEnabled(boolean) method, it
will clip the drawable to a rounded rectangle instead of resizing it.

The setRadius(int) method is used to specify the amount of border radius applied to
the corners of inner drawable, regardless of whether or not the clipping is enabled, border
radius will be applied to prevent overflowing of the drawable from specified rounded rectangular
area.

RoundedDrawable can be inflated from XML (supported above API level 24) or constructed
programmatically. To inflate from XML, use getDrawable(int)
method.