Place a label at coordinates in Titanium -
i have created label , place on coordinates. there way can directly set x , y coordinates place label in titanium.
very simply, set top , left values to respective y , x values. these relative labels parent, , not work expected if set parents layout property composite:
var label1 = ti.ui.createlabel({ color: '#900', font: { fontsize:48 }, text: 'a simple label', textalign: ti.ui.text_alignment_center, top: 30, // y coordinate left : 20, // x coordinate width: ti.ui.size, height: ti.ui.size }); check guide more information views, , positioning.
Comments
Post a Comment