After doing some prototypes, I made the decision not to use layouts (or drawables) for my METAR/TAF widget. I did this for several reasons but it was mostly because there are limitations in terms of reuse and run-time configuration of the attributes. I think these limitations are likely a result of the fact that layouts were really designed for supporting multiple devices over static (or semi-static) layouts.
Regardless, the way I'm doing it with x,y positioning works really well, is clean and is fast. However, the design only works out of the box for the D2 Bravo (and the fenix 3). To support other watches I need to modify some (but not all) of the positioning x,y numbers. Is there a good way to do this that doesn't involve hard-coding values per device (or device family) in the code? I've been exploring the use of resource-based properties but because that requires a variable and a call to getProperties() for each one it seems inefficient. I also though about using resource-based strings, which I could convert into numeric values but that is an even worse kludge. Am I missing something simple?
Cheers,
Douglas