Can anyone give me the dumbed-down version of how to override (select one or another based on situation) layouts in my main program files? Here is an (admittedly very basic) example of what I am talking about:
- I have a simple watch face with labels for varying information defined in my resources/layouts/layout.xml file. These labels are all defined with color="Gfx.COLOR_WHITE" since my default background color is black.
- The user now has the option to switch the background color to white. This wouldn't make sense if the labels were to remain white, so...
- I defined a second layout file as such: resources/layouts/black_label_layout.xml. It is identical to layout.xml with the exception that in here all the label elements are defined as having color="Gfx.COLOR_BLACK"
- The idea here is to gain a 'negative effect' such that when the background goes light, the labels automatically go dark, and vice-versa.
- I have fiddled around with this achieving various degrees of success (or not) but cannot seem to load the alternate rez in the right spot.
The SDK docs are rather ambiguous on this matter so I am reaching out to the community here to get a straight answer. Am I even on the right track here or is there a decidedly more efficient solution to this?
Thanks All!