Home » Android » java – Remove shadows below actionbar appcompat

java – Remove shadows below actionbar appcompat

Posted by: admin June 15, 2020 Leave a comment


Is it possible to remove the shadow below the Actionbar?

I am using the AppCompat v7 library.

How to&Answers:

This works with AppCompat:

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

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


Add this in style.xml :

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