I'm trying to place and imageView and a tableView in the same window. Currently the two views keep overlapping. How can I stack them so that the imageView is at the top of the window and the tableView starts after the end of the imageView? Thanks. Max
1 Answer
Accepted Answer
Try th following:
var img = Ti.UI.createImageview({ url:'img1.png', height:20,//height of image width:20,//width of image top:0 }); Ti.UI.currentWindow.add(img); var table = Ti.UI.createTableview(); table.top = img.top+img.height; Ti.UI.currentWindow.add(table);This willl work.
Your Answer
Think you can help? Login to answer this question!