win.titleImage doesn't fit nav bar
hello
i am using a 320x44 png to put in the navbar with the following code:
Ti.UI.currentWindow.titleImage = 'path/to/my/image';
the image appears, but does not fit the navbar; leaving a 3-4 pixel gap to the left, and a couple on the right.
anyone else found this, and have fixes for it?
cheers
vince
5 Answers
-
so, is there no way the whole navbar can be covered completely with an image?
-
I'm having the same problem. A solution for this is to set the barImage as the background of the title bar, and the titleImage with the image you want. In fact, setting both properties to the same image works too. Ok, it's not pretty, but it solves the problem temporarily until we find a real solution. ;)
-
for the title image the appropriate image size should be 24 x 24…
-
thanks for your reply - ah right, so you can't replace the nav bar (the area at the top with the window's title in) completely with a graphic?
-
Not using the standard nav bar, no - you could simply use a view as a header, which could have a background image styled any way you'd like. If you have sub-windows on the stack, they would need the custom header as well. This is just a function of how the native nav bar works.