簡體   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