Cristian
Cristian

Reputation: 514

Remove shadows below actionbar appcompat

Is it possible to remove the shadow below the Actionbar?

I am using the AppCompat v7 library.

Upvotes: 8

Views: 3931

Answers (2)

Damnum
Damnum

Reputation: 1859

This works with AppCompat:

<style name="MyAppTheme" parent="Theme.AppCompat.Light">
    <item name="actionBarStyle">@style/MyActionBarTheme</item>
</style>

<style name="MyActionBarTheme" parent="Base.Widget.AppCompat.Light.ActionBar.Solid">
    <item name="elevation">0dp</item>
</style>

Upvotes: 18

BSK-Team
BSK-Team

Reputation: 1810

Add this in style.xml :

<style name="MyTheme" parent="Theme.Sherlock">
....
<item name="windowContentOverlay">@null</item>
<item name="android:windowContentOverlay">@null</item>
....

Upvotes: -4

Related Questions