Styling sherlock ActionMode background

為{幸葍}努か 提交于 2019-12-13 14:01:05

问题


Can't seem to style the ActionMode background.

I've already overridden actionbar background but setting the ActionMode background doesn't seem to work:

<style name="Theme.apptheme" parent="@style/Theme.Sherlock.Light.DarkActionBar">

...

<item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>

<item name="actionModeBackground">@drawable/actionmode_background</item>
<item name="actionModeSplitBackground">@drawable/actionmode_split</item>

...

</style>

Any idea how to accomplish this?


回答1:


You're likely testing on ICS or JB, and therefore will not see any difference. You must also include these tags using the android: namespace.

E.g.

<item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>

<item name="android:actionModeBackground">@drawable/actionmode_background</item>
<item name="android:actionModeSplitBackground">@drawable/actionmode_split</item>


来源:https://stackoverflow.com/questions/12711612/styling-sherlock-actionmode-background

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!