Hello, I would like to advise where I am making a mistake in the code.
The problem is that dc.drawText doesn't draw the information for me.
Hello, I would like to advise where I am making a mistake in the code.
The problem is that dc.drawText doesn't draw the information for me.
In the layout.xml file I have:
<layout id="WatchFace">
<drawable class="Test"/>
</layout>
In the Update the view function this:
function onUpdate(dc) {
if(dc has :setAntiAlias) {
dc.setAntiAlias(true);
}
View.onUpdate(dc);
}
It works for other functions and not for this one.
Have you looked at the attached file to see if I have an unknown error in the code?
Yes, I looked at the code, that's why I asked when draw() is called.
You have to do direct dc calls after View.onUpdate() looks like you are trying to do it as a part of View.onUpdate()
Move your dc.drawText() out of draw() and right after View.onUpdate() in your update function.
somehow I stop understanding it, other functions that I have written are still rendered without any problem, but this one is not.
Can I ask you for an exact example of how to do it?
I moved dc.drawText to OnUpdate(); and put View.onUpdate(dc) below it;
and it didn't help.