문제

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