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

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -