Hi, I’m trying to build an interface with both side menu and tabs. On iOS it works fine, but on Android the tabs are hidden by the nav-bar. Here is one image explaining the issue.
I would check in your $stateProvider.state() section of code. For your tab view state you need to have the following in the configuration to make sure the tab view is going into the right <ion-nav-view>:
That is how I had mine set up, the content of the tab view looks like it’s at least positioning itself properly to where the tabs should be.
Did you try removing the class on the <ion-tabs>? Might be a long shot, but maybe some css attribute is affecting them?
Try opening the inspector to have a look at them and see if maybe either your own css styles are affecting them unknowingly or try using the same tabs classes I did: class="tabs-icon-top tabs-positive"
I found the same issue and the only way I found to combat the problem is to move the tabs to the bottom. You can do this by adding the following to app.js:
@jwt02180 I tried with class="tabs-icon-top tabs-positive" and also with no class attribute, but none of them worked. @A_Burgess I moved the tabs to the bottom as a temporary solution, but moving them to the bottom will make the app look less native on Android.
Sorry to hear that my suggestion didn’t work. I merely suggested that as an option because for me I don’t have a similar issue to yours, so I thought if you tried to mirror my code maybe we would coax out the issue. Wish I could help you more but I’ve only been using ionic for about a month myself. Hope you get it figured out, but for what it’s worth as an iOS user I definitely prefer the tabs on the bottom anyways
@jwt02180 the strange thing is that I have another ionic project in which the tabs are working on Android, but I cannot spot the difference between that project and this project. Anyway as an Android user I also prefer the tabs on the bottom
divine : What about that same app on IOS that does not have tabs on the top? I would prefer to have the native feel where Android is on top and IOS on the bottom, however currently I just have both on the bottom to avoid this ‘bug’.
Check for android version using the inspect element functionality of Developer tools of browser. Your tabs are hiding under the header. check the height of each <div> there, you will be able to fix the issue.
I forced the tabs on the bottom for a while, and continued the development of the app. After some time, I removed the $ionicConfigProvider.tabs.position(“bottom”); and the tabs on Android were magically under the header. I don’t know what I’ve done to make them work, but now they works properly on both iOS and Android.