谷歌眼镜:设计是/否选项菜单 [英] Google Glass: Design yes/no option menu

查看:151
本文介绍了谷歌眼镜:设计是/否选项菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设计一个菜单,选择是和否。

I want to design a menu with option "yes" and "no".

它看起来像在本地玻璃器皿,股份期权,当人们在他们的菜单触摸分享,玻璃要求用户选择脸谱或谷歌+

It looks like the share option in native Glassware, when people touch "share" in their menu, Glass asks users to choose "facebook" or "Google+".

我要你设计我的菜单具有相同功能和记录用户的选择,因为其他功能的输入。

I want do design my menu with the same function and record users' choice as the input of other functions.

但我很新到Android所以我不太清楚如何做到这一点。

But I'm quite new to Android so I'm not quite clear about how to do this.

我用Google搜索,发现了一些类似的问题:

I Googled and found some similar questions:

我认为这是某种形式的嵌套菜单,但这个问题说,有不应该被嵌套在玻璃。

I think it is some kind of nested menu but this question says there should not be nested in Glass.

<一个href=\"http://stackoverflow.com/questions/16327986/can-you-create-more-than-one-level-of-nested-timeline-cards-on-glass\">Can创建对玻璃嵌套时间轴卡不止一个级别?

和有另一个类似的溶液

HTTP://www.androidhive .INFO / 2014/10 /如何到创造 - 谷歌玻璃选项菜单/

但它在程序使用一个以上的活动,它比一个更复杂的操作,适合是/否的选择。

but it uses more than one activity in the program and it is suitable for a more complicated operation than "yes"/"no" choice.

所以,我认为我运行,并在有关嵌套菜单错误的方式搜索。谁能给我一个最终的答案我是否可以实现此操作与否。如果可以,什么是它的确切名称,所以我可以谷歌实现方法。

So I think I run and searched in a wrong way about the nested menu. Could anyone give me a final answer whether I can implement this operation or not. If can, what is its exact name so I can Google the implement method.

感谢

推荐答案

您应该尽量好好利用一下谷歌玻璃可以做的;在这种情况下,我会建议你使用语音识别一个简单的是或类似这样的用户没有响应 -

You should try to take advantage of what Google Glass can do; in this case, I would suggest you to use speech recognition for a simple Yes or No user response like this --

UI图

(Live card)--> app launcher
|                      |
Share                  Stop
 | onGesture activate    |
 | voice recognition    terminate the app
 | to take user input
 onActivityResult()
   if it's "facebook" then go share on FB
   if it's "Google plus" then go share on G+

下面是引用谷歌玻璃开发商网站 - 语音识别

Here is the reference to Google Glass Developers Website - Voice Recognition

本节有一个pretty易于理解如何实现语音识别教程。

The section has a pretty easy-to-understand tutorial on how to implement voice recognition.

下面是我的玻璃的应用程序的样本UI图。第一个菜单项需要语音命令,并要求用户确认它是否是正确的:例如,询问用户你是说'胡萝卜'?,并采取输入是是或否来确定以下采取行动。

Below is a sample UI diagram of my Glass app. The first menu item takes voice commands and ask the user to confirm whether or not it is correct: For instance, ask user "Did you say 'carrot'? " and take input as either 'yes' or 'no' to determine the following action.

最后,如果你喜欢,看看我的HelloWorld玻璃关于实施一些想法样本项目。直接链接到托管在谷歌code项目是在这里:的https://$c$c.google.com/p/hello-world-google-glass/source/browse/#git%2FHelloWorld

Finally, if you like, take a look at my HelloWorld Glass sample project for some ideas on the implementation. The direct link to the project hosted on Google Code is here: https://code.google.com/p/hello-world-google-glass/source/browse/#git%2FHelloWorld

这篇关于谷歌眼镜:设计是/否选项菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆