Android 4.4 (Kitkat) introduced a dropshadow beneath the actionbar, and our designers would like for us to disable it if possible.

I know you can disable the shadow beneath the actionbar if using ActionBarSherlock, but we only support 4.0.3+ and don't want to introduce another library dependency if at all possible.

Is this possible? If yes: how do you do it?

有帮助吗?

解决方案

Try adding <item name="android:windowContentOverlay">@null</item> to your App's theme definition.

EDIT I had windowOverly before, but it's actually windowContentOverlay

其他提示

DO THE FOLLOWING WITH THE Style

<style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.ActionBar">
<item name="background">@drawable/actionbar_bg</item>
<item name="android:background">@drawable/actionbar_bg</item>
<...>  

<style name="Theme.MyApp" parent="@style/Theme.Sherlock.Light">
<item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
<item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
<..>
</style>

in order to remove the shadow add this

<item name="android:windowContentOverlay">@null</item>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top