Simulator Epix and Vivoactive 3 Fields?

I'm trying to make my complex datafield (1 field) work for the 920 and also the Fenix, Epix and Vivoactive. In the simulator the Data Fields > Layout only has 3 Fields selectable for the Epix and Vivo. Am I missing something here...why can't I pick 1 field?

The pixel size is the same for the 920, Epix and Vivo so maybe I can assume that if it looks good on the 920 then it will work for the other two?

I am using TeunMo's suggestion to detect the device type at startup to change the text positioning for the 920 and Fenix, is this still the best way? I'm hoping to not make 2 different versions.
https://forums.garmin.com/showthread.php?192960-Determining-device-type-at-runtime-possible&p=488863&highlight=device+type#post488863

Thanks
Dave
  • I haven't seen a VivoActive or Epix, but I'm fairly certain that the setup in the simulator is by design. i.e., you get exactly three data fields per page, no more and no less.

    The solution proposed by TeunMo will work, but it isn't what I'd do in most cases (I don't think that he was proposing you use the device name for this purpose). I think the easiest thing to do is to define a layout resource in one of the resource files (say resources/resources.xml) and then provide a custom resource for each device (resources-fr920xt/resources.xml for the 920, and resources-fenix3/resources.xml for the Fenix3). Then you just load up the resource in your derived Ui.View onLayout() method.

    Travis
  • Former Member
    Former Member over 10 years ago
    The VivoActive does not allow data field layouts to be changed, and only has the single 3 field layout you are seeing in the simulator.

    The Epix will definitely have more layouts, but it appears the simulator definition has been copied from the VivoActive and does not match the device. We will get this updated in a future release of the SDK.