简体   繁体   中英

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)

手表侧面的按钮

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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