The text displays all the headers in the "Action Bar" tabs in "Sherlock"

Hello, I use the library Sherlockto achieve ActionBarTabsin Android, but there is some strange problem that the text displayed in Tabsis all caps. I do not want to make all the hats captive. How can I achieve this?

I tried this but it does not work

values-v14.xml

<style name="TariffPlansTheme" parent="Theme.Sherlock">
    <item name="actionMenuTextAppearance">@style/MyMenuTextAppearance</item>
    <item name="android:actionMenuTextAppearance">@style/MyMenuTextAppearance</item>
</style>

<style name="MyMenuTextAppearance" parent="TextAppearance.Sherlock.Widget.ActionBar.Menu">
    <item name="android:textAllCaps">false</item>
</style>

AndroidManifest.xml

<activity
    android:name="TariffPlansActivity"
    android:label="@string/title_activity_tariff_plans"
    android:screenOrientation="portrait" 
    android:theme="@style/TariffPlansTheme">
</activity>

Thanks in advance.

0
source share
1 answer

This solved my problem. I used the wrong parent style MenuinsteadTab

<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>
+5
source

All Articles