Appcompat v21 Toolbar elevation pre-lollipop

后端 未结 10 557
你的背包
你的背包 2020-12-23 13:33

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

10条回答
  •  醉梦人生
    2020-12-23 14:16

    You can add the shadow (elevation) back by using a FrameLayout with foreground="?android:windowContentOverlay". The elevation attribute is not supported pre-Lollipop. So if you are using FrameLayout like fragment container just add foreground attribute to it.

提交回复
热议问题