我正在尝试自定义 ActionBar 上的选项卡。我只想将标签与手机屏幕对齐,并使其可伸缩以适应各种屏幕。但我得到的只是:
我用于主题的代码是这样的:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarTabTextStyle">@style/MyActionBarTabTextStyle</item>
</style>
<style name="MyActionBarTabTextStyle" parent="@android:style/Widget.Holo.Light.Tab">
<item name="android:textSize">14dip</item>
<item name="android:padding">0dip</item>
</style>
</resources>
是否有可能只是减少字体并摆脱那些蓝线?
提前感谢您的帮助。
PS:按钮的行为也很奇怪。没有文字(虽然它应该是)......