First off, I know that this question has been asked before, but it hasn\'t been answered before. I hope someone can give me an answer.
In my application, I use the T
You can't use the elevation attribute before API 21 (Android Lollipop). You can however add the shadow programmatically, for example using a custom view placed below the Toolbar.
Toolbar
For example:
Where the shadow is a drawable with a black gradient.