Android Bug? tabBarHidden = true Does Not Work
Hello,
I think I found a bug in Android. The tabBarHidden
property of a window, when set to true
, does not hide the tab bar like it does on the iPhone.
To reproduce, go to app.js
in the KitchenSink example app and add tabBarHidden = true
to win1
like this:
var win1 = Titanium.UI.createWindow({
url:'main_windows/base_ui.js',
titleImage:'images/appcelerator_small.png',
tabBarHidden: true
});
When I run the app in the iPhone simulator, the tab bar is hidden, as expected. However, when I run the app in the Android simulator, the tab bar still appears at the top.
Is this a bug? If so, how can I log it somewhere?
Thank you and keep up the great work on Appcelerator!!
-Ryan
7 Answers
-
Then there has to be a way to have navigation without a tabgroup in android, otherwise this cross platform development is useless. If you are forced to have a tabgroup present on iphone, even if the individual tabs are hidden, in order to have a navigation bar, but the tabs are shown no matter what on android, then what is the point of hiding the tab unless you only do iphone development, and in that case I would use something like Nimblekit rather than Titanium.
-
you can use this code to hide Tab Bar in android
tabGroup.addEventListener("open", function(){
tabGroup.animate({top:-65,duration:0});
}); -
Android doesn't have a tab bar control, so it doesn't respond to that property. A tab group is a different beastie.
-
Tried running it at fullscreen?
-
// create the window var win1 = Titanium.UI.createWindow({ fullscreen: true, // this line does the trick navBarHidden : true, exitOnClose: true, url:'xxxx.js' }); // open the window win1.open();
-
Guys I realize this was 7 months ago, but with navBarHidden: true I see a huge gray bar at the top of my application in android that I don't see in iphone… so I realize in android it doesn't have a nav bar but instead it has a huge gray bar… so how would one go about not having a huge gray bar?
-
Hey Todd: Did you get that figured out? I have a big grey title bar on my Android app now that I don't want. I'd love to hear if you got it figured out.