简体   繁体   中英

How to change the location of Card title on Google Home Smart Display

I have created a Google Home Action for google assistant. In some cases it shows the card on Smart displays. The card title is displayed on the top left corner. My client for whom I am developing this app asked me to show the title on the bottom of the smart display. Is it possible? If yes, please help me how to move the title to the bottom corner of the smart display?

I have tried using Formatted Text property. I referred to the Google assistant response documentation here: https://developers.google.com/actions/assistant/responses .

{
  "basicCard": {
    "title": "Title",
    "formattedText": "This is the Formatted Title",
    "footer": "this is footer",
    "buttons": [
      {
        "title": "Visit Website",
        "openUrlAction": {
          "url": url
        }
      }
    ]
  }
}

I am expecting the card title or formatted text to be displayed in the lower end of the screen however, the card title is always displayed at the top of the screeen. How to change the card title location from top to bottom.

谷歌家庭智能显示器

I haven't tried it yet, but I would guess that the TableCards should work. Did you check the docs ?

带表卡的显示设备

Since I cannot detect which JSON format you are actually using I take the node.js example code:

// Simple table
conv.ask('Is that fine for you?')
conv.ask(new Table({
  dividers: false,
  columns: [''],
  rows: [
    [''],
    ['Your sting goes here'],
  ],
}))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM