Default action bar elevation

前端 未结 4 584
太阳男子
太阳男子 2021-01-31 02:22

I want to use an elevation in a custom layout element and I want to set in XML the value of that element using the default action bar elevation value. I can\'t find a way to get

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 03:01

    Default value is 8dp, create dimen with this value and use on whole project, I got it from sources, but the material design guidelines state the action bar elevation should be 4dp. enter image description here

提交回复
热议问题