Translucent NavBar overlapping view, like Photo app
I'm building an app with a section where people can see pics in a scrollableView. I'd like this section to behave like the Photo app.
When I open the window containing the view, I give it navBarHidden:true, tabBarHidden:true
and it's ok, people can scroll the view and see the pics.
But when I do a singletap on the view and call win.showNavBar()
, my view goes down and the navBar as well. I'd like the view to stay in place and have the navBar over it, translucent. How?
NB: same thing with Titanium.UI.iPhone.showStatusBar()
.
3 Answers
-
Accepted Answer
I think I forgot something. If you try
var win = Titanium.UI.createWindow({ translucent:true, ..... });
with the normal code( not the custom toolbar) it's not working?
If not, you will have to create your own image for the background of the button …
-
You might try to implement your own toolbar, creating one and set it to top:0.
-
Not a bad idea. It's working, but I'd like a "Back to albums" button, pointing left, and I can only create regular buttons on this toolbar (Titanium.UI.iPhone.SystemButtonStyle.BORDERED, PLAIN or DONE). Any clue?