In Android's Java, you are able to determine relative positions for UI objects since Android phones come in different sizes. Is that possible to do in Titanium?
1 Answer
You can use percentages for dimensions.
var view = Ti.UI.createView({ width: '50%', height: '50%', backgroundColor: '#123' }); var win = Ti.UI.createWindow({ fullscreen: true }); win.add(view); win.open();Run and see. :)
Also, check this blog entry: http://developer.appcelerator.com/blog/2011/06/new-defaults-for-android-layouts-in-1-7.html
Your Answer
Think you can help? Login to answer this question!