我已经阅读了这篇文章:
Android - 定制化actionbar sherlock标签页
我弄清楚了什么是StackedBackground和什么是Background,但我找不到如何取消Tab中的All Caps,以及如何获得常规字体或更改操作栏标签的字体大小。
除此之外,我想要更改我的蓝色下划线颜色,如果我使用9 patch图形,则会出现与上面链接中类似的情况,即文本下方有一条线,但在选项卡底部没有线条,并且原始的蓝色线条仍然存在,因此会出现两条线。
到目前为止,我已经尝试过各种文本大小和颜色,但无济于事:
<style name="CustomActivityTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="android:actionBarTabTextStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:background">@drawable/grey</item>
<item name="android:backgroundStacked">@drawable/ab_transparent_example</item>
<item name="android:textAllCaps">false</item>
<item name="android:textSize">10dp</item>
</style>
编辑: 我刚刚发现可以使用"android:actionBarTabTextStyle"来移除所有大写字母,但现在它会从"MyActionBar"中获取背景颜色...那么如何设置actionBarTabTextStyle和actionBarStyle列表的某种层次结构,使文字变小而不是大写,并且不从"MyActionBar"样式中获取背景。
编辑2: 我尝试了一些更多的9patch图像,看起来很丑,但我就是摆脱不了这些蓝线...