Portrait and Landscape layouts
There there a way to position buttons by percentages instead of absolute positions? Ie how it's done in interface builder.
I tried something like this, but it crashes the app. So I guess it can't take something like '60%'
var mapButton = Titanium.UI.createButton({
title:'Map',
height:50,
width:145,
top:'60%',
left:10
});
1 Answer
-
It may be the version of Titanium that you are using. I just tested this on a nightly build and it works fine and handles orientation as expected. What version are you using?