我正在使用 ActionBarSherlock 并尝试在操作栏项目上设置自定义背景。
我试过了:
<item name="actionButtonStyle">@style/customActionButtonStyle</item>
<item name="android:actionButtonStyle">@style/customActionButtonStyle</item>
</style>
<style name="customActionButtonStyle" parent="Widget.Sherlock.Light.ActionButton">
<item name="android:background">@drawable/background_black_translucent</item>
</style>
和
<item name="android:selectableItemBackground">@drawable/background_black_translucent</item>
<item name="selectableItemBackground">@drawable/background_black_translucent</item>
<item name="android:actionBarItemBackground">@drawable/background_black_translucent</item>
<item name="actionBarItemBackground">@drawable/background_black_translucent</item>
但我无法让它工作。有任何想法吗?
谢谢