Reputation: 10383
How in the watchface set attribute (a flag?) to make notification appear in "small notification mode" - as below:
Instead of such:
Upvotes: 0
Views: 282
Reputation: 10383
It is possible since release of new Android Wear Watchface API. To do that in our Activity that extends CanvasWatchFaceService
on onCreate()
we call:
setWatchFaceStyle(new WatchFaceStyle.Builder(AnalogWatchFaceService.this)
.setCardPeekMode(WatchFaceStyle.PEEK_MODE_SHORT)
...
.build());
And setCardPeekMode(WatchFaceStyle.PEEK_MODE_SHORT) is a key there. It also can show a bigger peek card - WatchFaceStyle.PEEK_MODE_VARIABLE
.
Upvotes: 1