So, I know this is undocumented and unsupported and not recommended etc.
But, I haven't given up on trying to add a button to an Android watchface. If you are familiar with WatchMaker, you know they support this feature!
My guess is that is has something to do with implementing onCommand
on the engine, but I have encountered 2 problems with this method:
- For some reason the X and Y are always 0 there
- I don't know how to disable the default tap action that takes you to the menu.
Anyways, if someone can guess or know how WatchMaker are doing this, please suggest a solution!
You can find an example here
In fact, these WatchFaces add views in the
WindowManager
that have anonClickListener
when visible.