- width
- The width in pixels of the stroke
- colorStateList
- The color state list of the stroke
- dashWidth
- The length in pixels of the dashes, set to 0 to disable dashes
- dashGap
- The gap in pixels between dashes
Set the stroke width and color state list for the drawable. If width is zero, then no stroke is drawn. This method can also be used to dash the stroke.
Note: changing this property will affect all instances of a drawable loaded from a resource. It is recommended to invoke GradientDrawable.mutate() before changing this property.