Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android tableview search crash

$
0
0

Mobile Titanium 3.1.3, Alloy Android Device, several different trials from 2.3.3 to samsung galaxy 3 Mac OS X

I have a tableview with a searchbar which works perfect in ios, but crashes in android. I keep getting a 'The specified child already has a parent. You must call removeView() on the child's parent first.' error. I have tried taking the searchbar out of the tableview, but then I get no search results. If I take it out of the tableview and then call $.tableview.search = $.searchBar; in the controller, it crashes again with the same error. I have tried putting the searchbar in the headerview but again no search results. I've also tried creating the searchbar in the controller and not adding it to window but just adding it to the tableview, but then it won't show up on the screen. I've also tried creating both the tableview and searchview in the controller but same results. Help?

XML

<TableView id = "tableview" filterAttribute="name">         
    <SearchBar id = "searchBar" />          
</TableView>

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>