android - Appcompat v21 Toolbar elevation pre-lollipop -
First of all, I know that this question has been asked before but it has not been answered earlier. I hope someone can give me an answer.
In my application, I use the toolbar from Appcompat_v7 (API 21). This is my code:
& lt; Android.support.v7.widget.Toolbar style = "@ style / darkActionbarStyle" Android: id = "@ + id / toolBar" Android: layout_width = "match_perrent" Android: layout_heh = "@ dimen / actionbar_height" />
And this is the Toolbar style I use:
The problem is, the upgrade pre-lollipop does not work. So my question is: Is there a shadow under the toolbar on the pre-lollipop device?
This works very well for me:
& lt; Android.support.v7.widget.CardView xmlns: card_view = "http://schemas.android.com/ apk / res-auto" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: background = "@ Color / primary "card_view: card height =" 4dp "card_view: card cornerradia =" 0 dp "& gt; & Lt; Android.support.v7.widget.Toolbar Android: Android: ID = "@ + ID / toolbar" Android: layout_width = "match_perrent" Android: layout_height = "wrap-content" Android: background = "@color / primary" Android: MinHeight = "? Entry / Actionbirds" /> & Lt; /android.support.v7.widget.CardView>
Comments
Post a Comment