Shadow below Actionbar-compat when using gaskets

I am working on an Android application that uses a compatibility package from Google to get snippets, etc. in Android 2.x. The action bar was created based on a Google example. A white “shadow” was placed underneath using

<item name="android:windowContentOverlay">@drawable/actionbar_shadow</item> 

However, the object under the action bar (fragment) contains a ListView with the following property

 android:paddingTop="5dp" 

This causes the white shadow to also reduce 5dp:

enter image description here

Is there a way to keep the registration in the ListView while keeping the shadow in the right place?

+8
android android-layout android-actionbar
source share
1 answer

This element should be in the theme of the application, and not in the style of ActionBar.

0
source share

All Articles