Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 文本显示Sherlock中操作栏选项卡中的所有大写字母_Android_Android Actionbar_Actionbarsherlock - Fatal编程技术网

Android 文本显示Sherlock中操作栏选项卡中的所有大写字母

Android 文本显示Sherlock中操作栏选项卡中的所有大写字母,android,android-actionbar,actionbarsherlock,Android,Android Actionbar,Actionbarsherlock,您好,我正在使用Sherlock库在Android中实现ActionBarTabs,但有一个奇怪的问题,即选项卡中出现的文本都是大写的。我不想把所有的帽子都戴到首都。我怎样才能做到这一点 我试过了,但没用 values-v14.xml <style name="TariffPlansTheme" parent="Theme.Sherlock"> <item name="actionMenuTextAppearance">@style/MyMenuTextAppea

您好,我正在使用
Sherlock
库在Android中实现
ActionBarTabs
,但有一个奇怪的问题,即
选项卡中出现的文本都是大写的。我不想把所有的帽子都戴到首都。我怎样才能做到这一点

我试过了,但没用

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>

@样式/MyMenuTextAppearance
@样式/MyMenuTextAppearance
假的
AndroidManifest.xml

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


提前谢谢。

这解决了我的问题。我使用了错误的父样式
菜单
而不是
选项卡

<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>

@style/My.TabText.style
@style/My.TabText.style
假的

这解决了我的问题。我使用了错误的父样式
菜单
而不是
选项卡

<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>

@style/My.TabText.style
@style/My.TabText.style
假的