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.
Simply set the
layout property of your View to
vertical (link to the doc here)
- 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
Hope this helps.
Think you can help? Login to answer this question!