Combine ListView and TabView

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]

I’m not sure the ListView2 example uses the latest widgets library, but I’ve seen it there before the widgets were released so I assume it doesn’t, try this instead it’s much smoother and might solve your problem with the height, etc

http://developer.anscamobile.com/content/widget [import]uid: 14018 topic_id: 15880 reply_id: 58716[/import]

Thanks for the Link. I will try to use the widget instead and see whether this solves the problem… [import]uid: 85086 topic_id: 15880 reply_id: 59350[/import]