push-button in Android Wear smartwatch

核能气质少年 提交于 2020-02-08 09:53:06

问题


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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/28596321/push-button-in-android-wear-smartwatch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!