Text appear all caps in Action Bar Tabs in Sherlock

前端 未结 1 500
天命终不由人
天命终不由人 2020-12-12 06:28

Hello I am using the Sherlock library to achieve the ActionBarTabs in Android but there is some weird issue that text appear in the Tabs

相关标签:
1条回答
  • 2020-12-12 06:54

    This solved my issue. I was using wrong parent style Menu instead of Tab

    <resources>
    
        <style name="AppTheme" parent="android:Theme.Holo.Light" />
    
        <style name="TariffPlansTheme" parent="Theme.Sherlock">
            <item name="actionBarTabTextStyle">@style/My.TabText.Style</item>
            <item name="android:actionBarTabTextStyle">@style/My.TabText.Style</item>
        </style>
    
        <style name="My.TabText.Style" parent="@style/Widget.Sherlock.ActionBar.TabText">
            <item name="android:textAllCaps">false</item>
        </style>
    
    </resources>
    
    0 讨论(0)
提交回复
热议问题