I want to have a view containing - a textfield at top=0 - a tableView - spreading all available space - a button at the bottom
how do I make the tableView spread all the available space (I would prefer not ti use the platform height and do subtractions since that s not very effective as there is the titlebar on iOS and it's equivalent on Android taking some space.
1 Answer
Accepted Answer
Simply set the layout property of your View to vertical (link to the doc here)
From, there:
- Make sure your view spans 100% in height
- Set the height of your text field
- Set the height of your button
- Set your TableView's height property to
Ti.UI.FILL
Hope this helps.
Your Answer
Think you can help? Login to answer this question!