问题
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