First try this
<style name="CustomAppTheme" parent="AppTheme"> <item name="android:windowContentOverlay">@null</item> </style>
If above solution does not work then do the following in the activity:
ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setElevation(0); }