Enum HorizontalSizeStyle
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
横向尺寸样式
用于设置 widget 如何填充列空间的枚举。
适用于 Google Chat 应用和 Google Workspace 插件。
如需调用枚举,您可以调用其父类、名称和属性。例如
CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE
。
属性
属性 | 类型 | 说明 |
FILL_AVAILABLE_SPACE | Enum | 调整 Widget 的大小,使其填充 Column 的可用水平空间。如果另一列有更多空间,该 widget 可以填充其自身列以外的空间。默认。 |
FILL_MINIMUM_SPACE | Enum | 调整 Widget 的大小,以填充 Column 中尽可能少的水平空间。最小间距取决于微件的大小。如果 widget 小于列的空间,则不会展开即可填满空间。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],["`HorizontalSizeStyle` is an enum controlling widget sizing within a column in Google Chat apps and Workspace add-ons. It has two properties: `FILL_AVAILABLE_SPACE`, which is the default and allows a widget to occupy all horizontal space, even extending beyond its column if another has more space, and `FILL_MINIMUM_SPACE`, where the widget uses only the minimum space it requires and will not expand to fill the column.\n"],null,[]]