Hi everyone, im working with a titanium android project where i have to place a tableview on the bottom of the screen. The tableview maximum height should be 1/3 of the screen.The height cant be fixed because there is dynamic content, and the tableview should not be higher than the content. It seems like bottom:0 doesnt do anything, it has to be positioned from the top?
Could any1 give me some hints about this positioning ?
I would also like a toggle button on top of the table where i can toggle show / hide the tableview.
Hope some1 could help me with this. Im really stuck.
Thanks alot .
1 Answer
Hi, You can create tableview like this :
Table = Ti.UI.createTableView({ bottom : 0, width : 320, height : 160, backgroundColor : 'transparent', separatorColor : 'transparent', headerView : tableHeaderView,// if you want to add any view as table header });
Your Answer
Think you can help? Login to answer this question!