setStroke

open fun setStroke(strokeWidth: Float, @ColorInt strokeColor: Int)

Set the shape's stroke width and stroke color.

Parameters

strokeWidth

a float for the width of the stroke.

strokeColor

an int representing the Color to use for the shape's stroke.


open fun setStroke(strokeWidth: Float, @Nullable strokeColor: ColorStateList)

Set the shape's stroke width and stroke color using a ColorStateList.

Parameters

strokeWidth

a float for the width of the stroke.

strokeColor

the ColorStateList for the shape's stroke.