div-rounded-rectangle-shape

A rectangle with rounded corners.

Parameters

Parameters Description
type

string

Required parameter.

The value must always be rounded_rectangle.

Available platforms: Android, iOS, web.

background_color

string

Fill color.

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

Available platforms: Android, iOS, web.

corner_radius

object

Corner rounding radius.

The value has the type div-fixed-size.

Default value: {"type":"fixed","value":5}.

Available platforms: Android, iOS, web.

item_height

object

Height.

The value has the type div-fixed-size.

Default value: {"type":"fixed","value":10}.

Available platforms: Android, iOS, web.

item_width

object

Width.

The value has the type div-fixed-size.

Default value: {"type":"fixed","value":10}.

Available platforms: Android, iOS, web.

stroke

object

Stroke style.

The value has the type div-stroke.

Available platforms: Android, iOS, web.

JSON
{
  type*: "rounded_rectangle",
  background_color: "string",
  corner_radius: {
    type*: "fixed",
    unit: "string",
    value*: "int"
  },
  item_height: {
    type*: "fixed",
    unit: "string",
    value*: "int"
  },
  item_width: {
    type*: "fixed",
    unit: "string",
    value*: "int"
  },
  stroke: {
    color*: "string",
    unit: "string",
    width: "number"
  }
}
Previous