Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
251 views
in Technique[技术] by (71.8m points)

android - ActionBar tabs height

I want to change default ActionBar tab's height, but can't find any info about. Is there some style attribute or method to set height of tabs? Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have to change the height of the actionbar in order to change the height of the tabs.

theme.xml

<style name="YourTheme" parent="@android:style/Theme.Holo">
    <item name="android:actionBarTabStyle">@style/tab_nav</item>
    <item name="android:actionBarTabTextStyle">@style/tab_nav_text</item>
    <item name="android:actionBarSize">80dp</item>
    ..
</style>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...