I’m using ActionBarSherlock. On Android 3.0+, there’s a subtle shadow under the ActionBar. But not on older Androids.
The problem is, that the shadow set in android:windowContentOverlay appears at the top of the Activity Window. And on older Androids, ActionBar is part of the Window. So the shadow overlays the top of the ActionBar, instead of overlaying the content under ActionBar.
Is there a way to solve this, without manually inserting the shadow to every Activity’s layout?
As @wingman hinted in the comments, I overrided
setContentView(...)in my baseActivitylike this: