Identify Device Type in Comples DataField app

Hi,

It's posible to identify the device type (Fenix3, Edge520,...) in an Complex DataField App? for different label positioned proportionally it does not match in different garmin device and I want to identify the device to adjust the label position.


Thanks
  • If you are using layouts, some things can be handled at compile time by using separate resource directories (resources-vivoactive,resources-fr230, etc). Then the code just really needs to figure out what the # of DF is, and where it is on the screen.

    In Eclipse, if you do a file>new>CIQ project and have it generate a complex DF, in the onLayout() function you'll see how to do that.

    I don't usually use layouts, and what I do is in onLayout(), is I get the width and height of the dc and the obscurity flags and figure the DF and placements using that.
  • This post answers the original question.

    Travis