push-button in Android Wear smartwatch

2019-09-07 04:41发布

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

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条回答
一纸荒年 Trace。
2楼-- · 2019-09-07 05:11

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.

查看更多
登录 后发表回答