简体   繁体   English

如何在Gear2上制作'toast'

[英]How to make 'toast' on Gear2

I found here in "UI Design Guidelines for Gear 2" document information about pop-ups, that we can use the following types of pop-ups: 我在“武器2的UI设计指南”中找到关于弹出窗口的文档信息,我们可以使用以下类型的弹出窗口:
- Information - 信息
- Confirmation - 确认
- Alerts - 提醒
- Progress - 进步
- Processes - 流程
- Toasts - 祝酒词

I'm interested in the last one: toasts , but i can't find anything how to provide them. 我对最后一个感兴趣: 敬酒 ,但我找不到任何提供它们的方法。 Do you have any step-by-step solutions/samples that could help me? 您是否有任何可以帮助我的分步解决方案/样品?

For this kind of question, you should use the sample project "WearableWidget" 对于这类问题,您应该使用示例项目“WearableWidget”

You can add this to your HTML for toast, and there is plenty of other exemple of pop-up: 您可以将此添加到您的HTML for Toast,还有很多其他弹出窗口:

<div class="ui-popup-toast">
        Saving contacts to sim on Samsung 
</div>

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

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