For the same specific watch (lets assume 920) - I would like to describe two different layouts that would be initiated after a "App.getApp().getProperty" code.
As i'm doing the initial watch layout @ Layout.xml, i was wondering to setup those two layouts (that uses different images) - but they just ovelap and load all of them in sequence!
<resources>
<layout id="WatchFace">
<bitmap id="logo" x="center" y="20" filename="../IMAGE1" />
</layout id>
<layout id="WatchFaceB">
<bitmap id="logo" x="center" y"20" filename="../IMAGE2" />
</layout id>
</resources>
function onLayout(dc)
{
if ( Property == 0 )
{
setLayout(Rez.Layouts.WatchFace(dc));
}
else
{
setLayout(Rez.Layouts.WatchFaceB(dc));
}
}
Any ideias why this approach is not working?
Best regards,