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