I create a new watchface for android wear.
I'd like to change visibility of some elements (textviews) on watchface, if indicators (lost connection, load battery) are shown on the screen.
Is there a way to recognize when those indicators get visible?
Here i set up the watchFaceStyle:
setWatchFaceStyle(new WatchFaceStyle.Builder(DigitalWatchFaceService.this)
.setAcceptsTapEvents(false)
.setCardPeekMode(WatchFaceStyle.PEEK_MODE_SHORT)
.setBackgroundVisibility(WatchFaceStyle.BACKGROUND_VISIBILITY_INTERRUPTIVE)
.setHotwordIndicatorGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL)
.setPeekOpacityMode(WatchFaceStyle.PEEK_OPACITY_MODE_TRANSLUCENT)
.setShowUnreadCountIndicator(false)
.setStatusBarGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL)
.setShowSystemUiTime(false)
.build());
Is there something like..:
isStatusBarVisible()
or
isHotwordIndicatorVisible()
or is there some methode in a listener? I can't find something like this..