简体   繁体   English

表面功能-区分智能显示器和移动设备

[英]Surface Capabilities — distinguish between smart displays and mobile devices

My Actions on Google app has screen output with suggestion chips. 我在Google应用上的操作在屏幕上显示带有建议筹码的屏幕。 On a smartphone the chips -- which are displayed as a single row at the screen bottom -- do not fit the screen width. 在智能手机上,芯片(在屏幕底部显示为单行)不适合屏幕宽度。 On eg a Google Nest Hub they are all visible. 在例如Google Nest Hub上,它们都是可见的。

Is there a way to set the chip text according to the screen type? 有没有一种方法可以根据屏幕类型设置芯片文本? For instance, in that case I would show '(backward)' and '(forward)' on the Nest Hub and '(<<)' and '(>>)' on the smartphone. 例如,在那种情况下,我会在Nest Hub上显示'(向后)'和'(向前)',在智能手机上显示'(<<)'和'(>>)'。

You can check the actions.capability.WEB_BROWSER capability, which exists on phones and not smart displays. 您可以检查actions.capability.WEB_BROWSER功能,该功能存在于电话而非智能显示器上。

However, from a design perspective, suggestion chips are intended to be available on a scrolling horizontal plane. 但是,从设计角度来看,建议芯片打算在滚动的水平面上使用。 If the text does not fit on the screen, users are given a visual hint that they can scroll sideways to find additional options. 如果文本不能显示在屏幕上,则会为用户提供视觉提示,提示他们可以横向滚动以查找其他选项。

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

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