Hi all, I'm trying to por mi new simple app writen directly doing
dc.drawText(60, 180, Graphics.FONT_NUMBER_MILD, string_temperatura, Graphics.TEXT_JUSTIFY_CENTER);
to
findDrawableById("temperaturaLabel").setText(string_temperatura.toString());
and after a lot of reading now this part seems to work fine.
The new challenge its to put behing the this text some graphical elemente like a rectangle o circle. I dont know how can I do or I'm missunderstanting something.
Part of my code...
function onLayout(dc){ setLayout(Rez.Layouts.Principal(dc)); } function onUpdate(dc) { View.onUpdate(dc); dc.setColor(Graphics.COLOR_LT_GRAY, Graphics.COLOR_TRANSPARENT); dc.fillRectangle(122, 104, 240, 15); //Zona0.draw(dc); //var Zona0 = findDrawableById("Zona0"); //Zona0[0].setColor(0xAAFF55); //HR findDrawableById("HRLabel").setText(string_HR.toString()); //dc.drawText(180, 50, Graphics.FONT_NUMBER_THAI_HOT, string_HR, Graphics.TEXT_JUSTIFY_CENTER); }
when I draw the rectangle it puts over the text of hr and I want to put it behind.
Any help will be appreciated
Thanks