Hello,
I try to combine ListView and TabView from the interface example folder. I took the TabView example which shows 3 different white screens when you tab on one of the three tabs at the bottom of the screen. I would like to replace one of this screens with the ListView2 example. My problem is that the ListView is shown over the whole screen hiding the tab bar at the bottom.
What I did so far:
I copied the content of the ListView2 file into Screen1.lua and moved all related files into the TabBar folder. Then I changed the ListView example. I commented out the background lines:
–local background = display.newRect(0, 0, display.contentWidth, display.contentHeight)
–background:setFillColor(77, 77, 77)
and added the following lines at the end:
function detailScreen:cleanUp()
detailScreen:removeSelf()
end
return detailScreen
Due to this changes I do see the Tab bar now once I select an item in the list. What I see then is the navigation bar with back button at the top, the screen with the text in the middle and the Tab bar at the bottom - so everything fine here.
The only remaining problem is, that the ListView itself hides the Tab bar and I do not see where I can change it.
What I would have expected in the code is a line like:
detailScreen:insert(myList)
I even tried to insert this, but it lead to a crash.
Hope you can give me a hint!
Thanks you very much! [import]uid: 85086 topic_id: 15880 reply_id: 315880[/import]