Horizontal alignment of text fields
Greetings,
I'm pretty new to Appcelerator, so please bear with me.
I'm trying to place a simple text field in the window:
var uname = Titanium.UI.createTextField({
color:'#336699',
height:35,
top:10,
left:10,
width:250,
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
});
win1.add(uname);
But it's appearing aligned left. Is there any quick way to make it show up in the centre of the page?
Many thanks,
3 Answers
-
Hi Eamonn
Yes, remove the "left" property
Hal
-
Eamonn
Please mark the answer above as the best answer, if it resolved your problem
Thank you
-
ping Eamonn - please see my other comment