本文介绍了造型福尔摩斯ActionMode背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
似乎无法在样式背景ActionMode
Can't seem to style the ActionMode background.
我已经重写动作条的背景,但设置ActionMode背景似乎不工作:
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?
推荐答案
您是在ICS或JB可能的测试,因此将不会看到任何区别。你必须同时包含使用这些标签的android:
命名
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.
例如
<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>
这篇关于造型福尔摩斯ActionMode背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!