question

Stef Nado avatar image
Stef Nado asked ·

How to delete the indentation (left padding) in the header and in the hint text?

Is it possible to delete the indentation (left padding) in the header and in the hint text?

aplalexa presentation language
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Alexander Martin avatar image
Alexander Martin answered ·

Hi @Stef Nado,

yes it is possible, but not official. You have to overwrite internal, undocumented resources. Please keep in mind that this change may break with a future update.

Please also note that this change may cause incorrect views on the echo spot. I'd recommend to overwrite the resources for all devices except the echo spot.

Here is an example APL document:

{
  "type": "APL",
  "version": "1.4",
  "settings": {},
  "theme": "dark",
  "import": [
    {
      "name": "alexa-viewport-profiles",
      "version": "1.1.0"
    },
    {
      "name": "alexa-layouts",
      "version": "1.2.0"
    }
  ],
  "resources": [
    {
      "when": "${@viewportProfile != @hubRoundSmall}",
      "dimensions": {
        "headerHorizontalMarginLeft": 0,
        "footerPaddingLeft": 0
      }
    }
  ],
  "styles": {},
  "onMount": [],
  "graphics": {},
  "commands": {},
  "layouts": {},
  "mainTemplate": {
    "parameters": [
      "payload"
    ],
    "items": [
      {
        "type": "Container",
        "width": "100vw",
        "height": "100vh",
        "items": [
          {
            "type": "AlexaHeader",
            "headerTitle": "Header title"
          },
          {
            "type": "AlexaFooter",
            "hintText": "Foo"
          }
        ]
      }
    ]
  }
}

Regards,

Alex


---

Twitter: @xeladotbe

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.