I'm making a watchface for Android Wear. I would like to position the status bar at the bottom instead of at the top.
The documentation states to use the setStatusBarGravity()
-method of WatchFaceStyle.Builder
: https://developer.android.com/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setStatusBarGravity(int)
However, this does not seem to work as intended. Whenever I use Gravity.BOTTOM
, the icons are centered vertically inside the watchface instead of positioned at the bottom.
This is the code I use:
setWatchFaceStyle(new WatchFaceStyle.Builder(Watchface.this)
.setShowUnreadCountIndicator(true)
.setStatusBarGravity(Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM)
.setAcceptsTapEvents(true)
.build());
Which results in this (notice the charging indicator in the middle)
What am I doing wrong? I have googled and SO'd, but couldn't find any relevant information.