Glance Background/Gradient

On some devices, like the vivoactive 5 and Forerunner 965, the background of Glances is a gradient but when creating a CIQ app the drawable area is just a black square.

Even when just setting a default WatchUi.GlanceView() as the Glance View its still a black square so its not caused by something I'm drawing.

Do you need to manually draw the background based on device type in Glances? Because even so i don't see anything in the SDK that lets you draw gradients.

  • Alright, turns out calling super.onUpdate() from onUpdate is what causes it, even though you need to call that on every normal view and even the default GlanceView calls it, you need to explicitly NOT call it.

    Garmin please fix (bad documentation)

  • Alright, turns out calling super.onUpdate() from onUpdate is what causes it, even though you need to call that on every normal view and even the default GlanceView calls it, you need to explicitly NOT call it.

    To be fair you only need to call super.onUpdate() on regular views if you have a layout associated with the view (this part isn’t well documented either), as the super class’s onUpdate() method will actually render the layout contents.

    This would seemingly imply that you can’t use a layout with a glance view if you want to preserve the gradient, which could be considered a bug.