what is the best way to manage glance view layouts for different devices?

In my widget I use a seperate layout.mc per device (set in the jungle via "d2mach1.sourcePath = source;source-round-416x416-a")

 var layout = getLayout(); is called from the onupdate function in the mainWidgetView 
However, when doing the same from the Glanceview I get a Error: Illegal Access (Out of Bounds) Details: Failed invoking <symbol>
The glance looks terrible on a D2 Mach 1 but fine on the fenix range, how do you best control the glance views without memory issues?
Should I be using another layout method?
Any advise welcome 
  • By the way, with a glace view, you may want to skip using layouts at all and save memory that way.  You can get the width and height of the dc, and then use dc.drawText() to display what you want, using Graphic.FONT_GLANCE and Graphics.FONT_GLANCE_NUMBER.

    While on devices, you may see "32k" for a background and "32k" for a glance view, but that's a bit deceptive, in that those two combined have a limit of 32k, as the (:background) stuff is loaded along with (:glance)

    If your app doesn't have anything in the background, the glance view can be "32k" or if it has a background service and no glance view, that can be "32k".