繁体   English   中英

如何在Google Home Smart Display上更改卡片标题的位置

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

我为Google助手创建了Google Home Action。 在某些情况下,它会在智能显示屏上显示卡片。 卡片标题显示在左上角。 我开发此应用程序的客户要求我在智能显示屏的底部显示标题。 可能吗? 如果是,请帮助我如何将标题移动到智能显示屏的底角?

我尝试过使用Formatted Text属性。 我在此处提到了Google助手响应文档: 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
        }
      }
    ]
  }
}

我期待卡片标题或格式化文本显示在屏幕的下端,但是卡片标题始终显示在屏幕的顶部。 如何从上到下更改卡片标题位置。

谷歌家庭智能显示器

我还没有尝试过,但我猜想TableCards应该可行。 你检查过文档了吗?

带表卡的显示设备

由于我无法检测您实际使用的是哪种JSON格式,因此我采用了node.js示例代码:

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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