setRoundedCornerColor

open fun setRoundedCornerColor(corners: Int, @ColorInt color: Int)(source)

Sets the color for the specified rounded corners.

Parameters

corners

A bitmask of the corners to set the color for. Use constants like ROUNDED_CORNER_TOP_LEFT, ROUNDED_CORNER_TOP_RIGHT, etc., or ROUNDED_CORNER_ALL to set all corners.

color

The color to set for the specified corners.

Throws

if corners is ROUNDED_CORNER_NONE or if an invalid corner value is provided.