Android Wear Smartwatch中的按钮 [英] push-button in Android Wear smartwatch

查看:280
本文介绍了Android Wear Smartwatch中的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SDK Android中是否存在一个表示按钮(手表侧面的按钮)的类

Is there in SDK Android Wear a Class representing a push-button (the push button on the side of the watch)

如果可以的话,我可以为该按钮分配提示和方法,用户可以按下或单击该按钮以执行操作.

If it's possible, can I assign a comportment and a method to this push-button, the push-button can be pressed, or clicked, by the user to perform an action.

我发现了这个 http://developer.android.com/reference/android/小部件/按钮. Html 但是我认为这个Class代表按钮小部件,而不是我想要的

I found this http://developer.android.com/reference/android/widget/Button. Html but I think this Class representing a button widget, not what I want

推荐答案

否,目前(目前)无法替代关闭电源按钮的操作.同样,正如CurlyCorvus和Nicolas提到的那样,您提供了指向UI Button(不是硬件)类的链接,并且为屏幕提供了非Android Wear设备.

No, there is no way (at this point) to override action for power off button. Also as CurlyCorvus and Nicolas mentioned you provided link to UI Button (not hardware one) class, and you provided screens with non-Android Wear devices.

这篇关于Android Wear Smartwatch中的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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