Trying to create a custom toolbar at the top of the app

You must Login before you can answer or comment on any questions.

I'm trying to create a toolbar at the top of the app with a logo and 2 buttons. Right now I'm creating a view and added it to the window like this:

var toolbar = Ti.UI.createView({
        width:320,
        height:Ti.App.toolbarHeight,
        top:0,
        backgroundGradient:{
            type:'linear',
            startPoint:{x:'0%',y:'50%'},
            endPoint:{x:'100%',y:'50%'},
            colors:[{color:'#8ca61b',offset:0.0},{color:'#9bb81e',offset:1}]
        }
    });
And it works fine, but when I'm in a tabbed view with the toolbar, the toolbar seems to "refresh" or flicker when a new tab is selected.

Is there something I can do about this? Or should I be making the toolbar in a completely different way?

Any help is appreciated :)

— asked 8 months ago by Adam Zwakenberg
1 Comment
  • if there is nothing else in the newly tabbed to window than the toolbar, does it still flicker?

    — commented 8 months ago by Aaron Saunders

1 Answer

I fixed this by creating buttons on the titlebar and added custom images to the buttons.

Your Answer

Think you can help? Login to answer this question!