【发布时间】:2012-05-04 07:48:34
【问题描述】:
所以我正在尝试设置我使用 ActionBarSherlock 库实现的 Actionbar 选项卡的样式。这是我的代码:
<style name="Theme.AndroidDevelopers" parent="Theme.Sherlock.Light.ForceOverflow">
<item name="actionBarTabStyle">@style/CustomActionBarStyle</item>
<item name="android:actionBarTabStyle">@style/CustomActionBarStyle</item>
<style name="CustomActionBarStyle" parent="Widget.Sherlock.Light.ActionBar.TabBar">
<item name="android:background">@drawable/actionbar_tab_bg</item>
</style>
在第二行和第三行,如果我将 actionBarTabStyle 更改为 actionBarStyle,我的操作栏本身会更改为我想要的样式(当然不是很好),所以连接确实有效。但是,尝试更改操作栏选项卡(在其下方)仍然没有成功。
我希望有人可以帮助我。
问候,
【问题讨论】:
-
你检查过
style的开始和结束标签了吗?
标签: android styles themes android-actionbar actionbarsherlock