My goal is to increase the ActionBar
height for portrait mode. I currently set
android:actionBarSize
in my Themes.xml.
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="DayTheme" parent="android:style/Theme.Holo.Light">
<item name="android:actionBarSize">@dimen/actionBarHeight</item>
<item name="android:actionBarTabTextStyle">@style/tab_indicator_text_dark</item>
</style>
<style name="NightTheme" parent="android:style/Theme.Holo">
<item name="android:actionBarSize">@dimen/actionBarHeight</item>
<item name="android:actionBarTabTextStyle">@style/tab_indicator_text_light</item>
</style>
</resources>
I get the desired effect in landscape mode where I have increased the ActionBar
height to 80dp.
However, went I rotate the screen into portrait mode the height changes like so.
Note I make the following calls in code.
final ActionBar bar = getActionBar();
bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
bar.setDisplayShowTitleEnabled(false);
bar.setDisplayShowHomeEnabled(false);
I am developing on a Nexus 7 with android 4.2.
How do I get the same 80dp height in portrait mode that I have in landscape mode?