I want to add SearchView to another View.
I can't place it to ActionBar(I hide native actionBar and create custom view instead).
When I add it to View and set search:searchBar to TableView, my app crashes.
I use Appcelerator Studio, platform is Android
Here is the code I use:
var searchBar = Ti.UI.createSearchBar({
hintText:"",
color:"#000000",
barColor:"#eaeaea",
height:40,
borderColor:"#ffffff",
backgroundColor:"#ffffff",
showCancel:false
});
var prevadzkyListView = Ti.UI.createListView({
top:55,
templates:{'simple':cTemplate},
separatorStyle:1,
width:width,
height:height-80,
backgroundColor: 'transparent',
editing: false,
moving: false,
visible: true,
scrollable:true,
searchView:searchBar,
resultsBackgroundColor: "#c0392b",
});