Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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().

— asked August 17th 2010 by Jérôme Danthinne
  • navbar
  • opacity
0 Comments

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 …

    — answered August 17th 2010 by Dan Tamas
    permalink
    0 Comments
  • You might try to implement your own toolbar, creating one and set it to top:0.

    — answered August 17th 2010 by Dan Tamas
    permalink
    0 Comments
  • 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?

    — answered August 17th 2010 by Jérôme Danthinne
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.