div-shape-drawable

Drawable of a simple geometric shape.

Parameters

Parameters Description
shape

object

Required parameter.

Shape.

The value has the type div-shape.

Available platforms: Android, iOS, web.

List of possible values:

  • div-rounded-rectangle-shape
  • div-circle-shape
  • type

    string

    Required parameter.

    The value must always be shape_drawable.

    Available platforms: Android, iOS, web.

    color

    string

    Parameter is deprecated.

    Fill color.

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

    Available platforms: Android, iOS, web.

    stroke

    object

    Parameter is deprecated.

    Stroke style.

    The value has the type div-stroke.

    Available platforms: Android, iOS, web.

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