div-shape-drawable

Drawable of a simple geometric shape.

JSON

{
  type*: "shape_drawable",
  color*: "string",
  shape*: div-shape,
  stroke: {
    color*: "string",
    unit: "string",
    width: "int"
  }
}

Parameters

ParametersDescription
color

string

Required parameter.

Parameter is deprecated.

Fill color.

Valid formats: #RGB, #ARGB, #RRGGBB, #AARRGGBB.

shape

object

Required parameter.

Shape.

The value has the type div-shape.

stroke

object

Parameter is deprecated.

Stroke style.

The value has the type div-stroke.

type

string

Required parameter.

The value must always be shape_drawable.

ParametersDescription
color

string

Required parameter.

Parameter is deprecated.

Fill color.

Valid formats: #RGB, #ARGB, #RRGGBB, #AARRGGBB.

shape

object

Required parameter.

Shape.

The value has the type div-shape.

stroke

object

Parameter is deprecated.

Stroke style.

The value has the type div-stroke.

type

string

Required parameter.

The value must always be shape_drawable.