div-nine-patch-background

Image in 9-patch format (https://developer.android.com/studio/write/draw9patch).

JSON

{
  type*: "nine_patch_image",
  image_url*: "string",
  insets*: {
    bottom: "int",
    left: "int",
    right: "int",
    top: "int"
  }
}

Parameters

ParametersDescription
image_url

string

Required parameter.

Image URL.

The value must be a valid URL.

insets

object

Required parameter.

Margins that break the image into parts using the same rules as the CSS border-image-slice property (https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice).

The value has the type div-absolute-edge-insets.

type

string

Required parameter.

The value must always be nine_patch_image.

ParametersDescription
image_url

string

Required parameter.

Image URL.

The value must be a valid URL.

insets

object

Required parameter.

Margins that break the image into parts using the same rules as the CSS border-image-slice property (https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice).

The value has the type div-absolute-edge-insets.

type

string

Required parameter.

The value must always be nine_patch_image.