I'm just getting my feet wet. Initially I'm trying to make some simple changes to a watchface using the layout system and am not seeing the changes I expect.
I tried modifying the layout xml file to specify a background color and it does not appear to change. If I am reading the User Interface guide correct, I should be able to set the background property and I would expect the background to actually change.
<layout id="WatchFace" background="Gfx.COLOR_WHITE">
<label id="TimeLabel" x="center" y="center" font="Gfx.FONT_LARGE" justification="Gfx.TEXT_JUSTIFY_CENTER" color="Gfx.COLOR_WHITE" />
</layout>
In the simulator I still see a black background.
I can change the text color and see that change so I'm pretty sure I'm changing the right file and the layout is set correctly etc. Am I misunderstanding the background feature of the layout?
I'm sure I'm doing something silly and once I see a working example I'll see how easy it is... but for the moment, not so much. I can clear it manually using setColor and clear on the DrawingContext, but I figured it would be part of the layout.
As I'm writing this and thinking about it, maybe in the example, that is what the Mainbackground drawable is, just a rectangle the size of the screen "clearing the view"?
Secondly, I see references to the resource compiler being smart about laying out out for various devices. Is there a way of controlling positioning in the resource/layout files that isn't absolute positioning? I can set the x and y of a bitmap, but I have to know what device I'm targetting if I want that centered for example.
Maybe these are all answered somewhere and I'm missing the magic documentation link.
Thanks,
Ben