android - Smaller notification on the watchface -


how in watchface set attribute (a flag?) make notification appear in "small notification mode" - below:

enter image description here

instead of such:

enter image description here

it possible since release of new android wear watchface api. in our activity extends canvaswatchfaceservice on oncreate() call:

 setwatchfacestyle(new watchfacestyle.builder(analogwatchfaceservice.this)                 .setcardpeekmode(watchfacestyle.peek_mode_short)                 ...                 .build()); 

and setcardpeekmode(watchfacestyle.peek_mode_short) key there. can show bigger peek card - watchfacestyle.peek_mode_variable.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -