简体   繁体   English

Android Wear Smartwatch中的按钮

[英]push-button in Android Wear smartwatch

Is there in SDK Android Wear a Class representing a push-button (the push button on the side of the watch) Android SDK SDK中是否存在一个表示按钮(手表侧面的按钮)的类

手表侧面的按钮

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. 如果可以,我可以为该按钮分配提示和方法吗,用户可以按下或单击该按钮以执行操作。

I found this http://developer.android.com/reference/android/widget/Button . 我发现了这个http://developer.android.com/reference/android/widget/Button Html but I think this Class representing a button widget, not what I want HTML,但我认为这个Class代表按钮小部件,而不是我想要的

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. 同样,正如CurlyCorvus和Nicolas提到的那样,您提供了指向UI Button(不是硬件)类的链接,并且为屏幕提供了非Android Wear设备。

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

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