SeslRoundedLayerDrawable
A helper class for rounding the corners of a BitmapDrawable.
This class extends BitmapDrawable and overrides the draw method to clip the drawable with a rounded rectangle.
Example usage:
val bitmap = BitmapFactory.decodeResource(resources, R.drawable.my_image)
val roundedDrawable = SeslRoundedLayerDrawable(resources, bitmap)
imageView.setImageDrawable(roundedDrawable)
Content copied to clipboard
Parameters
res
The resources object.
bitmap
The bitmap to be drawn.