In my application, in one of the activities I have 2 tabs displaying different content, the problem is that when I load it in my normal screen device & large screen device it's just fine, tabs are below the actionbar, but when I load it in xlarge screen device, the tabs are moved to the top of the actionbar, here's how I handle my actionbar:
ActionBar ab = getActionBar();
ab.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
ab.setCustomView(R.layout.action_bar);
ab.setDisplayShowHomeEnabled(false);
ab.setDisplayShowTitleEnabled(false);
I also used :
ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
but the result was the same in xlarge screen devices. any idea why is this happening and how to fix it??
PS: I know ActionBar is deprecated in android 5.0 and replacing the actionbar is not an option for me at the moment. Later I'll have to replace it but at the moment I have to fix this.
Thanks in advance.