In this video Google mentions using windowOverscan
in the styles
file. The problem is I do not have a styles file in my Android Wear module. Is there a more recent method that allows you to center text properly?
I found out through experimenting that the windowOverscan
attribute is set within the style you choose in your AndroidManifest
file. I was able to view the settings of each style by going to the Design
tab in the layout xml then finding the style
attribute and clicking the three dots and then going to the System
tab. When a style is selected you can see the code at the bottom of the window.
I also read that windowOverscan
is set to true
by default.
My problem was actually caused by the custom font I was using and not windowOverscan
. Hope this saves someone the trouble.