ActionBar without shadow but ContextualActionBar with shadow



In an app I'm working on, I would like to have an action bar with no shadow, but a contextual action bar with a shadow. I've been experimenting with the styles.xml file, and I've found that I can remove the shadow of both by specifying:



<item name="android:windowContentOverlay">@null</item>


However, as I said, this removes both shadows. Is there some way to have an action bar with no shadow, but a contextual action bar with shadow without creating a custom view that looks like the action bar?


Maybe I can somehow change the shadow at runtime when I show/hide the contextual action bar?


No comments:

Post a Comment