TableView + SearchBar height & attr

You must Login before you can answer or comment on any questions.

My platform sdk 1.5, android I have this code

var searchInput = Ti.UI.createSearchBar({
    showCancel:false
});
 
var tableview = Ti.UI.createTableView({
    rowHeight: win.height/8,
    search: searchInput
});
 
win.add(tableview);
I'm tring to make searchbar height to be the same like createTableView rows height. But nothing to be happend when I'm doing like this
var searchInput = Ti.UI.createSearchBar({
    showCancel:false,
    height: 100
});
or
var searchInput = Ti.UI.createSearchBar({
    showCancel:false,
    height: 100
});
 
var tableview = Ti.UI.createTableView({
    rowHeight: win.height/8,
    search: searchInput,
    height: 100
});
SearchBar are always about 65px in height.

Somebody had this problem?

Your Answer

Think you can help? Login to answer this question!